Restore failure returns to unexaix.c, unexcoff.c, unexcw.c
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Mar 2011 20:18:59 +0000 (13:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Mar 2011 20:18:59 +0000 (13:18 -0700)
src/unexaix.c
src/unexcoff.c
src/unexcw.c

index e6aad2d..df4c5b8 100644 (file)
@@ -142,6 +142,7 @@ unexec (const char *new_name, const char *a_name)
       || unrelocate_symbols (new, a_out, a_name, new_name) < 0)
     {
       close (new);
+      return;
     }
 
   close (new);
index 03b0015..ef86a40 100644 (file)
@@ -545,6 +545,7 @@ unexec (const char *new_name, const char *a_name)
       )
     {
       close (new);
+      return;
     }
 
   close (new);
index 1202e04..f643c19 100644 (file)
@@ -263,6 +263,7 @@ unexec (const char *outfile, const char *infile)
     {
       /* can only dump once */
       printf ("You can only dump Emacs once on this platform.\n");
+      return;
     }
 
   report_sheap_usage (1);