app_lua: init timeval structures
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 7 Apr 2021 08:29:24 +0000 (10:29 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 13 Apr 2021 06:28:06 +0000 (08:28 +0200)
(cherry picked from commit e1369a4cf0c668a0ee40d3b84b9c6382c2168e49)

src/modules/app_lua/app_lua_api.c

index 3fa131c..f736bea 100644 (file)
@@ -1605,7 +1605,7 @@ int sr_kemi_lua_exec_func(lua_State* L, int eidx)
 {
        sr_kemi_t *ket;
        int ret;
-       struct timeval tvb, tve;
+       struct timeval tvb = {0}, tve = {0};
        struct timezone tz;
        unsigned int tdiff;
        lua_Debug dinfo;