]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sh-i18n--envsubst.c
refs: make errno output explicit for read_raw_ref_fn
[thirdparty/git.git] / sh-i18n--envsubst.c
index e7430b9aa8ecf136a7d625ee059822e1e1a74b26..6cd307ac2c65a2825e467aeb9c1e6abfe8cc7e70 100644 (file)
@@ -104,12 +104,12 @@ cmd_main (int argc, const char *argv[])
   if (ferror (stderr) || fflush (stderr))
     {
       fclose (stderr);
-      exit (EXIT_FAILURE);
+      return (EXIT_FAILURE);
     }
   if (fclose (stderr) && errno != EBADF)
-    exit (EXIT_FAILURE);
+    return (EXIT_FAILURE);
 
-  exit (EXIT_SUCCESS);
+  return (EXIT_SUCCESS);
 }
 
 /* Parse the string and invoke the callback each time a $VARIABLE or