diff options
| author | William Ahern <william@server.local> | 2013-09-09 15:35:56 -0700 |
|---|---|---|
| committer | William Ahern <william@server.local> | 2013-09-09 15:35:56 -0700 |
| commit | 993ee935cdb5aacb3485cceb0cdb264d7f8bd098 (patch) | |
| tree | 3e31280c70c2a0f767d814deda1e5ca0a5234d0b | |
| parent | 6e6b301ceee052ffd4187d9024c09520e4378de3 (diff) | |
| download | luaossl-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
| -rw-r--r-- | openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1835,7 +1835,7 @@ static _Bool scan(int *i, char **cp, int n, int signok) { | |||
| 1835 | 1835 | ||
| 1836 | static double timeutc(ASN1_TIME *time) { | 1836 | static double timeutc(ASN1_TIME *time) { |
| 1837 | char buf[32] = "", *cp; | 1837 | char buf[32] = "", *cp; |
| 1838 | struct tm tm; | 1838 | struct tm tm = { 0 }; |
| 1839 | int gmtoff = 0, year, i; | 1839 | int gmtoff = 0, year, i; |
| 1840 | double ts; | 1840 | double ts; |
| 1841 | 1841 | ||
