mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
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.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user