X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp_json.c;h=10b5927945ec1f4e8d649caba8b9a69eaf4d208d;hb=80c2b1ecf858c7df7a7e447ed4e7e10393be6a17;hp=5d2d4cd85403231352c866aea6e7bb32e9a75c7e;hpb=eb26e5d2404df23c3151a55a6d887abb421ef601;p=ppastats.git diff --git a/src/lp_json.c b/src/lp_json.c index 5d2d4cd..10b5927 100644 --- a/src/lp_json.c +++ b/src/lp_json.c @@ -23,8 +23,8 @@ #include #include -#include "lp_json.h" -#include "lp_ws.h" +#include +#include #include static time_t json_to_time(json_object *json) @@ -37,7 +37,6 @@ static time_t json_to_time(json_object *json) if (!str) return -1; - memset(&tm, 0, sizeof(struct tm)); tm.tm_isdst = -1; ret = strptime(str, "%FT%T", &tm);