patch hang if can't find files [FIX]

Andrew G. Tereschenko tag@ibis.odessa.ua
Mon Oct 16 07:58:00 GMT 2000


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



More information about the Cygwin mailing list