Module: kamailio
Branch: 5.1
Commit: fc5c5f56c08766415e8a13b9e86e405bc504d695
URL:
https://github.com/kamailio/kamailio/commit/fc5c5f56c08766415e8a13b9e86e405…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-22T10:21:55+02:00
topos: fix warning about uninitialized variable
(cherry picked from commit e7ee14f0d168c36c62cd6bef58334db1f0871470)
---
Modified: src/modules/topos/tps_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fc5c5f56c08766415e8a13b9e86e405…
Patch:
https://github.com/kamailio/kamailio/commit/fc5c5f56c08766415e8a13b9e86e405…
---
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) {