Catch null prog pointer
Thomas Hood
18 years ago
1 changed file(s) with
3 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+3
-0
src/killall5.c
less
more
377
377
int foundone = 0;
378
378
int ok = 0;
379
379
380
if (! prog)
381
return NULL;
382
380
383
/* Get basename of program. */
381
384
if ((s = strrchr(prog, '/')) == NULL)
382
385
s = prog;