projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360ef67
)
don't use psec or pdays if NULL
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 20 Nov 2012 15:20:40 +0000
(15:20 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 20 Nov 2012 15:20:40 +0000
(15:20 +0000)
crypto/o_time.c
patch
|
blob
|
history
diff --git
a/crypto/o_time.c
b/crypto/o_time.c
index f8cf590c2777fd691835e6d6a814985be49aa2a6..49bff49f2bbbde8c4df724dbba4270d722325a88 100644
(file)
--- a/
crypto/o_time.c
+++ b/
crypto/o_time.c
@@
-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;