don't use psec or pdays if NULL
This commit is contained in:
@@ -289,8 +289,10 @@ int OPENSSL_gmtime_diff(struct tm *from, struct tm *to, int *pday, int *psec)
|
|||||||
diff_sec -= SECS_PER_DAY;
|
diff_sec -= SECS_PER_DAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
*pday = (int)diff_day;
|
if (pday)
|
||||||
*psec = diff_sec;
|
*pday = (int)diff_day;
|
||||||
|
if (psec)
|
||||||
|
*psec = diff_sec;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user