diff options
Diffstat (limited to 'usr.sbin/cron/lib/env.c')
-rw-r--r-- | usr.sbin/cron/lib/env.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/cron/lib/env.c b/usr.sbin/cron/lib/env.c index 71e0398..1703735 100644 --- a/usr.sbin/cron/lib/env.c +++ b/usr.sbin/cron/lib/env.c @@ -41,7 +41,8 @@ env_free(envp) { char **p; - for (p = envp; *p; p++) + if ((p = envp)) + for (; *p; p++) free(*p); free(envp); } |