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

don't use psec or pdays if NULL

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