summaryrefslogtreecommitdiff
blob: d27bcc04a681bc1b7534984aa59c300ce3b2564b (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: 
http://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

--- src/myndbm.c.orig
+++ 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;