summaryrefslogtreecommitdiff
blob: 837d4408ab1f0906238034af35251961cb702846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The function getdelim() behaves slightly different on FreeBSD,
only appending to the *line buffer if line_size is 0.

See: 
https://savannah.nongnu.org/bugs/?29466
http://bugs.gentoo.org/314791

Already comitted upstream:
http://cvs.savannah.gnu.org/viewvc/ccvs/src/myndbm.c?root=cvs&r1=1.38&r2=1.39

--- a/src/myndbm.c.orig
+++ b/src/myndbm.c
@@ -213,7 +213,7 @@
 mydbm_load_file (FILE *fp, List *list, char *filename)
 {
     char *line = NULL;
-    size_t line_size;
+    size_t line_size = 0;
     char *value;
     size_t value_allocated;
     char *cp, *vp;