[sr-dev] git:master:a1d9adb3: core: init timeval variables to avoid compile warning

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 17 15:19:15 CEST 2019

Module: kamailio
Branch: master
Commit: a1d9adb329d261b8b3856a39c5ccaa27ce8f0849
URL: https://github.com/kamailio/kamailio/commit/a1d9adb329d261b8b3856a39c5ccaa27ce8f0849

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-04-17T15:18:22+02:00

core: init timeval variables to avoid compile warning


Modified: src/core/action.c


Diff:  https://github.com/kamailio/kamailio/commit/a1d9adb329d261b8b3856a39c5ccaa27ce8f0849.diff
Patch: https://github.com/kamailio/kamailio/commit/a1d9adb329d261b8b3856a39c5ccaa27ce8f0849.patch


diff --git a/src/core/action.c b/src/core/action.c
index 06775a88fc..8b6725598c 100644
--- a/src/core/action.c
+++ b/src/core/action.c
@@ -1527,7 +1527,7 @@ int run_actions(struct run_act_ctx* h, struct action* a, struct sip_msg* msg)
 	struct action* t;
 	int ret;
-	struct timeval tvb, tve;
+	struct timeval tvb = {0}, tve = {0};
 	struct timezone tz;
 	unsigned int tdiff;

More information about the sr-dev mailing list