提交 598c423e 编写于 作者: D Dr. Stephen Henson

don't use psec or pdays if NULL

上级 360ef676
......@@ -289,8 +289,10 @@ int OPENSSL_gmtime_diff(struct tm *from, struct tm *to, int *pday, int *psec)
diff_sec -= SECS_PER_DAY;
}
*pday = (int)diff_day;
*psec = diff_sec;
if (pday)
*pday = (int)diff_day;
if (psec)
*psec = diff_sec;
return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册