]> granicus.if.org Git - neomutt/commitdiff
Make sure childout string is valid before giving to unlink
authorErik Hovland <erik@hovland.org>
Wed, 25 Mar 2009 22:22:11 +0000 (15:22 -0700)
committerErik Hovland <erik@hovland.org>
Wed, 25 Mar 2009 22:22:11 +0000 (15:22 -0700)
sendlib.c

index 3cb9feabfc49d4053cb64160c2533cd86b55f1ff..bac0c0c09ea2b928051bf556cf2fbc8887181716 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -2237,7 +2237,7 @@ mutt_invoke_sendmail (ADDRESS *from,      /* the sender */
       }
     }
   }
-  else
+  else if (childout)
     unlink (childout);
 
   FREE (&childout);