]> diplodocus.org Git - nmh/blobdiff - uip/mhmail
mhshow: Avoid SEGV when user's command has two or fewer words.
[nmh] / uip / mhmail
index 09625afcca50c55eaa9d27d99b27a3a9dc8a2573..b94886f08af1de10bc9d23962baf23117d419eeb 100755 (executable)
@@ -299,10 +299,9 @@ else
 
   if "$post_or_send" $postsendargs "$tmpfile"; then
     exit
-  else
-    status=$?
-    mv -f "$tmpfile" dead.letter
-    printf 'Letter saved in dead.letter\n' >&2
-    exit $status
   fi
+  status=$?
+  mv -f "$tmpfile" dead.letter
+  printf 'Letter saved in dead.letter\n' >&2
+  exit $status
 fi