[Pkg-sysvinit-commits] r217 - sysvinit/trunk/src

Thomas Hood jdthood-guest at costa.debian.org
Wed Nov 23 18:42:15 UTC 2005


Author: jdthood-guest
Date: 2005-11-23 18:42:14 +0000 (Wed, 23 Nov 2005)
New Revision: 217

Modified:
   sysvinit/trunk/src/killall5.c
Log:
Catch null prog pointer

Modified: sysvinit/trunk/src/killall5.c
===================================================================
--- sysvinit/trunk/src/killall5.c	2005-11-23 18:39:29 UTC (rev 216)
+++ sysvinit/trunk/src/killall5.c	2005-11-23 18:42:14 UTC (rev 217)
@@ -378,6 +378,9 @@
 	int		foundone = 0;
 	int		ok = 0;
 
+	if (! prog)
+		return NULL;
+
 	/* Get basename of program. */
 	if ((s = strrchr(prog, '/')) == NULL)
 		s = prog;




More information about the Pkg-sysvinit-commits mailing list