This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch hang if can't find files [FIX]


Try to apply patch for 2 files what does't exist.
It will stackdump.

The following will fix it:

====
--- inp.c.org	Mon Oct 16 17:45:17 2000
+++ inp.c	Mon Oct 16 17:45:29 2000
@@ -58,8 +58,14 @@
 re_input()
 {
     if (using_plan_a) {
+	if (i_buffer) {
+		free (i_buffer);
+	        i_buffer = NULL;
+	}
+	if (i_ptr) {
+		free (i_ptr);
+		i_ptr = NULL;
+	}
-	free (i_buffer);
-	free (i_ptr);
     }
     else {
 	close (tifd);
====

=============================
Andrew G. Tereschenko
Software Engineer
Integrated Banking Information Systems
tag@ibis.odessa.ua




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]