Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37857961
en ru br
ALT Linux repos
S:0.1.18-alt1_3

Group :: System/Libraries
RPM: libcomps

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0001-Fix-Missing-braces.patch
Download


From c6d5e6e7f220ee5e3cdccc440c03119e3ce411d3 Mon Sep 17 00:00:00 2001
From: Jaroslav Rohel <jrohel@redhat.com>
Date: Thu, 13 Dec 2018 15:12:30 +0100
Subject: [PATCH] Fix: Missing braces
---
 libcomps/tests/check_objrtree.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libcomps/tests/check_objrtree.c b/libcomps/tests/check_objrtree.c
index bdb3f0e..c0546f2 100644
--- a/libcomps/tests/check_objrtree.c
+++ b/libcomps/tests/check_objrtree.c
@@ -60,9 +60,10 @@ COMPS_ObjRTree * load_acrodict(char *filename) {
     }
     while (!feof(f)) {
         memset(buffer, 0, 100);
-        if (!fgets(buffer, 100, f))
+        if (!fgets(buffer, 100, f)) {
             fclose(f);
             return rt;
+        }
         buffer[strlen(buffer)-1] =0;
         //printf("buffer:%s\n", buffer);
         pch = strrchr(buffer, '-');
-- 
2.13.6
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin