From: Tomas Mraz Date: Fri, 11 Mar 2011 17:32:27 +0000 (+0100) Subject: Remove unused variable. X-Git-Tag: cronie1.4.7~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80399361e3865140bef1b95361b243bd662f0c99;p=cronie Remove unused variable. --- diff --git a/src/cron.c b/src/cron.c index 955b1b0..b8d8456 100644 --- a/src/cron.c +++ b/src/cron.c @@ -462,7 +462,6 @@ static void find_jobs(int vtime, cron_db * db, int doWild, int doNonWild, long v user *u; entry *e; const char *uname; - struct passwd *pw = NULL; /* The support for the job-specific timezones is not perfect. There will * be jobs missed or run twice during the DST change in the job timezone. @@ -508,7 +507,7 @@ static void find_jobs(int vtime, cron_db * db, int doWild, int doNonWild, long v (long) e->pwd->pw_gid, e->cmd)) uname = e->pwd->pw_name; /* check if user exists in time of job is being run f.e. ldap */ - if ((pw = getpwnam(uname)) != NULL) { + if (getpwnam(uname) != NULL) { job_tz = env_get("CRON_TZ", e->envp); maketime(job_tz, orig_tz); /* here we test whether time is NOW */