]> diplodocus.org Git - nmh/commitdiff
Fixed use of WIFEXITED in mhfixmsg.c.
authorDavid Levine <levinedl@acm.org>
Mon, 18 Mar 2013 13:54:55 +0000 (08:54 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 18 Mar 2013 13:54:55 +0000 (08:54 -0500)
uip/mhfixmsg.c

index 1f240e4568a9729e9f4c69570f8d25f489d9eccd..d69039748d81bcd2705e6ceb0d95103d2b062caf 100644 (file)
@@ -1815,13 +1815,10 @@ static int
 remove_file (char *file) {
     if (rmmproc) {
         char *rmm_command = concat (rmmproc, " ", file, NULL);
-        int status = WIFEXITED (status = system (rmm_command))
-            ?  WEXITSTATUS (status)
-            :  NOTOK;
+        int status = system (rmm_command);
 
         free (rmm_command);
-
-        return status;
+        return WIFEXITED (status)  ?  WEXITSTATUS (status)  :  NOTOK;
     } else {
         /* This is OK for a non-message file, it still uses the
            BACKUP_PREFIX form.  The backup file will be in the same