From f09f4e015bffe6db5d7e63d47b23f22db4806736 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 26 Feb 2009 12:29:59 +0000 Subject: runsv: small optimization *: more paranoia around passing NULL to execl[e] function old new delta custom 240 221 -19 --- networking/ifupdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking') diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 07855f07f..c9371cce8 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -982,7 +982,7 @@ static int doit(char *str) case -1: /* failure */ return 0; case 0: /* child */ - execle(DEFAULT_SHELL, DEFAULT_SHELL, "-c", str, NULL, my_environ); + execle(DEFAULT_SHELL, DEFAULT_SHELL, "-c", str, (char *) NULL, my_environ); _exit(127); } safe_waitpid(child, &status, 0); -- cgit v1.2.3