From 386fac2421eeff1919feb29c6bd0f178202cd249 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Sat, 26 Jan 2013 19:18:15 +0100 Subject: [PATCH] core: fix copy & paste bug in uwsgi_manage_command_cron It looks like tm_hour is used where tm_mon was intended. Reported by Coverity as CID #970975. --- core/master_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/master_utils.c b/core/master_utils.c index 3b940a36..5b998ab6 100644 --- a/core/master_utils.c +++ b/core/master_utils.c @@ -724,7 +724,7 @@ void uwsgi_manage_command_cron(time_t now) { } } if (current_cron->month < 0) { - if ((uwsgi_cron_delta->tm_hour % abs(current_cron->month)) == 0) { + if ((uwsgi_cron_delta->tm_mon % abs(current_cron->month)) == 0) { uc_month = uwsgi_cron_delta->tm_mon; } }