]> git.pld-linux.org Git - packages/gdbm18.git/commitdiff
- make sure created database header is initialized (patch from rawhide).
authorkloczek <kloczek@pld-linux.org>
Tue, 9 Nov 1999 14:07:06 +0000 (14:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gdbm18-jbj.patch -> 1.1

gdbm18-jbj.patch [new file with mode: 0644]

diff --git a/gdbm18-jbj.patch b/gdbm18-jbj.patch
new file mode 100644 (file)
index 0000000..37f494e
--- /dev/null
@@ -0,0 +1,11 @@
+--- gdbm-1.8.0/gdbmopen.c.jbj  Tue Aug 10 10:57:38 1999
++++ gdbm-1.8.0/gdbmopen.c      Tue Aug 10 10:59:06 1999
+@@ -214,7 +214,7 @@
+       file_block_size = block_size;
+       /* Get space for the file header. */
+-      dbf->header = (gdbm_file_header *) malloc (file_block_size);
++      dbf->header = (gdbm_file_header *) calloc (1, file_block_size);
+       if (dbf->header == NULL)
+       {
+         gdbm_close (dbf);
This page took 0.072815 seconds and 4 git commands to generate.