Module: kamailio
Branch: master
Commit: e7ee14f0d168c36c62cd6bef58334db1f0871470
URL:
https://github.com/kamailio/kamailio/commit/e7ee14f0d168c36c62cd6bef58334db…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)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/e7ee14f0d168c36c62cd6bef58334db…
Patch:
https://github.com/kamailio/kamailio/commit/e7ee14f0d168c36c62cd6bef58334db…
---
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) {