<<< Date Index >>>     <<< Thread Index >>>

[PATCH 4 of 4] Make sure childout string is valid before giving to unlink



1 file changed, 1 insertion(+), 1 deletion(-)
sendlib.c |    2 +-


# HG changeset patch
# User Erik Hovland <erik@xxxxxxxxxxx>
# Date 1238019731 25200
# Branch HEAD
# Node ID 106e9eab216a908e2fbb0be469648f608ad99f8c
# Parent  0524ec5b903768d880d65e5b934473ee36144e01
Make sure childout string is valid before giving to unlink

diff --git a/sendlib.c b/sendlib.c
--- a/sendlib.c
+++ b/sendlib.c
@@ -2234,7 +2234,7 @@
       }
     }
   }
-  else
+  else if (childout)
     unlink (childout);
 
   FREE (&childout);