summaryrefslogtreecommitdiff
path: root/print/dviselect/files/patch-lib_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/dviselect/files/patch-lib_search.c')
-rw-r--r--print/dviselect/files/patch-lib_search.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/print/dviselect/files/patch-lib_search.c b/print/dviselect/files/patch-lib_search.c
new file mode 100644
index 000000000000..43054c620521
--- /dev/null
+++ b/print/dviselect/files/patch-lib_search.c
@@ -0,0 +1,11 @@
+--- lib/search.c~ Wed Nov 15 13:19:58 1989
++++ lib/search.c Wed Dec 13 22:53:51 2006
+@@ -72,7 +72,7 @@
+ s->s_space = 10; /* initially, room for 10 objects */
+ s->s_n = 0; /* and none in the table */
+ if ((s->s_data = malloc(s->s_space * dsize)) == 0) {
+- free((char *) s); (char *) s = 0;
++ free((char *) s); s = 0;
+ return (0);
+ }
+ return (s);