aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2019-05-25 16:42:10 +0200
committerBjørn Mork <bjorn@mork.no>2019-05-25 16:42:10 +0200
commit53d507626e65512951de719d62da678f33543c3d (patch)
tree000c10e90c178dd439ddc65ae824266a42ae43dd
parent2607bb4d3fc6e2ec0d9d187fcb06e8b5b6c269c1 (diff)
initialize time var to avoid spurious bogus results
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--obinsectd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/obinsectd.c b/obinsectd.c
index 5d9d760..4f588fc 100644
--- a/obinsectd.c
+++ b/obinsectd.c
@@ -646,7 +646,7 @@ static bool parse_payload(unsigned char *buf, size_t buflen, json_object *json)
{
unsigned long invokeid;
unsigned char *p;
- time_t t;
+ time_t t = 0;
json_object *tmp, *body;
bool datetime_bug = false;