aboutsummaryrefslogtreecommitdiffstats
path: root/openssl.c
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@server.local> 2013-09-09 15:35:56 -0700
committerLibravatarLibravatar William Ahern <william@server.local> 2013-09-09 15:35:56 -0700
commit993ee935cdb5aacb3485cceb0cdb264d7f8bd098 (patch)
tree3e31280c70c2a0f767d814deda1e5ca0a5234d0b /openssl.c
parent6e6b301ceee052ffd4187d9024c09520e4378de3 (diff)
downloadluaossl-993ee935cdb5aacb3485cceb0cdb264d7f8bd098.tar.gz
luaossl-993ee935cdb5aacb3485cceb0cdb264d7f8bd098.tar.bz2
luaossl-993ee935cdb5aacb3485cceb0cdb264d7f8bd098.zip
-n
fix initialization issue with tm.tm_sec in tm2unix, and be conservative about it in case future code uses other members
Diffstat (limited to 'openssl.c')
-rw-r--r--openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl.c b/openssl.c
index 1c9161a..5fda60d 100644
--- a/openssl.c
+++ b/openssl.c
@@ -1835,7 +1835,7 @@ static _Bool scan(int *i, char **cp, int n, int signok) {
static double timeutc(ASN1_TIME *time) {
char buf[32] = "", *cp;
- struct tm tm;
+ struct tm tm = { 0 };
int gmtoff = 0, year, i;
double ts;