[sr-dev] git:master:e7ee14f0: topos: fix warning about uninitialized variable
Henning Westerholt
hw at kamailio.org
Fri Jun 1 22:47:08 CEST 2018
Module: kamailio
Branch: master
Commit: e7ee14f0d168c36c62cd6bef58334db1f0871470
URL: https://github.com/kamailio/kamailio/commit/e7ee14f0d168c36c62cd6bef58334db1f0871470
Author: Henning Westerholt <hw at kamailio.org>
Committer: Henning Westerholt <hw at kamailio.org>
Date: 2018-06-01T22:46:37+02:00
topos: fix warning about uninitialized variable
---
Modified: src/modules/topos/tps_storage.c
---
Diff: https://github.com/kamailio/kamailio/commit/e7ee14f0d168c36c62cd6bef58334db1f0871470.diff
Patch: https://github.com/kamailio/kamailio/commit/e7ee14f0d168c36c62cd6bef58334db1f0871470.patch
---
diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index da141888c3..66169f7b02 100644
--- a/src/modules/topos/tps_storage.c
+++ b/src/modules/topos/tps_storage.c
@@ -371,7 +371,7 @@ int tps_storage_link_msg(sip_msg_t *msg, tps_data_t *td, int dir)
*/
int tps_storage_record(sip_msg_t *msg, tps_data_t *td, int dialog)
{
- int ret;
+ int ret = -1; /* error if dialog == 0 */
str suid;
if(dialog==0) {
More information about the sr-dev
mailing list