]> git.pld-linux.org Git - packages/texinfo.git/commitdiff
- new (fix makeinfo segfaults)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 16 Feb 2003 18:03:08 +0000 (18:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    texinfo-free.patch -> 1.1

texinfo-free.patch [new file with mode: 0644]

diff --git a/texinfo-free.patch b/texinfo-free.patch
new file mode 100644 (file)
index 0000000..baf90c1
--- /dev/null
@@ -0,0 +1,21 @@
+diff -urN texinfo-4.5.org/makeinfo/index.c texinfo-4.5/makeinfo/index.c
+--- texinfo-4.5.org/makeinfo/index.c   Sun Feb 16 19:00:50 2003
++++ texinfo-4.5/makeinfo/index.c       Sun Feb 16 19:01:33 2003
+@@ -342,9 +342,14 @@
+              here; otherwise, when we try to define the pg index again
+              just below, it will still point to cp.  */
+           undefindex (name_index_alist[i]->name);
+-          free (name_index_alist[i]->name);
+-          free (name_index_alist[i]);
+-          name_index_alist[i] = NULL;
++          
++          /* undefindex sets all this to null in some cases.  */
++          if (name_index_alist[i])
++            {
++              free (name_index_alist[i]->name);
++              free (name_index_alist[i]);
++              name_index_alist[i] = NULL;
++            }
+         }
+     }
This page took 0.0473 seconds and 4 git commands to generate.