diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2014-12-15 12:14:41 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2014-12-15 12:14:41 +0000 |
commit | 4c9547cd12b5bb569f10b368eb6bb04d897d596f (patch) | |
tree | 025b1191fa4f9c03bf5345071dd2658f5d240b69 /lib/isc/tm.c | |
parent | 989b3b2d6068ce5b525479b7754977baf6364a7d (diff) |
Notes
Diffstat (limited to 'lib/isc/tm.c')
-rw-r--r-- | lib/isc/tm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/isc/tm.c b/lib/isc/tm.c index 08af2bcc95dd..842a2f7fb4ab 100644 --- a/lib/isc/tm.c +++ b/lib/isc/tm.c @@ -147,6 +147,12 @@ isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) { size_t len = 0; int alt_format, i, split_year = 0; + REQUIRE(buf != NULL); + REQUIRE(fmt != NULL); + REQUIRE(tm != NULL); + + memset(tm, 0, sizeof(struct tm)); + bp = buf; while ((c = *fmt) != '\0') { |