changeset 1272:7949d2e66339

[project @ 1995-04-21 00:19:28 by jwe]
author jwe
date Fri, 21 Apr 1995 00:19:28 +0000
parents ffecaa9b9892
children fd3ed8834b77
files kpathsea/pathsearch.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kpathsea/pathsearch.c	Thu Apr 20 20:23:21 1995 +0000
+++ b/kpathsea/pathsearch.c	Fri Apr 21 00:19:28 1995 +0000
@@ -330,10 +330,13 @@
 kpse_path_search P3C(const_string, path,  const_string, name,
                      boolean, must_exist)
 {
-  static string *ret_list;
+  static string *ret_list = 0
 
   if (ret_list)
-    free (ret_list);
+    {
+      free (ret_list);
+      ret_list = 0;  /* Don't let an interrupt in search() cause trouble */
+    }
 
   ret_list = search (path, name, must_exist, false);