if(tm.tm_mday > -1 && tm.tm_mon > -1 && tm.tm_year > -1) {
/* if we leave sec/min/hour == -1, then these will be
* normalised to the previous day */
- int was_sec = tm.tm_sec; tm.tm_sec = 0;
- int was_min = tm.tm_min; tm.tm_min = 0;
- int was_hour = tm.tm_hour; tm.tm_hour = 0;
+ int was_sec, was_min, was_hour;
+ was_sec = tm.tm_sec; tm.tm_sec = 0;
+ was_min = tm.tm_min; tm.tm_min = 0;
+ was_hour = tm.tm_hour; tm.tm_hour = 0;
if(mktime(&tm) == (time_t)-1)
XSRETURN(0);