File: upstream-bug-source-double_fclose.patch

package info (click to toggle)
evolver 2.70%2Bds-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,328 kB
  • sloc: ansic: 127,395; makefile: 208; sh: 98
file content (21 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: source (serious) bug fix
 Discard a fclose call certainly forgotten during coding but
 which causes a segfault when the online help is used; meant
 to be submitted to the upstream maintainer.
Origin: debian
Forwarded: by email
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2016-07-11

--- a/src/help.c
+++ b/src/help.c
@@ -518,8 +518,7 @@
       relcount++;
     }
   }
-  fclose(fd);
-  if ( !found ) 
+  if ( !found )
   { sprintf(msg,"Cannot find help entry for \"%s\". \n", keyword);
     outstring(msg);
   }