]> code.delx.au - gnu-emacs/commitdiff
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 e6aad2db775741cf0d520647a7f7386a96c7141a..df4c5b8905c65c02c56f7cc2b3d5723f2bdb3c07 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 03b0015e6b9ea232ddbf29172398d2f4001dab2a..ef86a40023916c12fe5d4b546fbc2dfa3858b7a4 100644 (file)
@@ -545,6 +545,7 @@ unexec (const char *new_name, const char *a_name)
       )
     {
       close (new);
+      return;
     }
 
   close (new);
index 1202e046024c435e82cf87ad0b70774f863e854a..f643c196de0f82d3ce62303084e99469bb30d6c9 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);