Browse Source

topos: fix warning about uninitialized variable

Henning Westerholt 7 năm trước cách đây
mục cha
commit
e7ee14f0d1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modules/topos/tps_storage.c

+ 1 - 1
src/modules/topos/tps_storage.c

@@ -371,7 +371,7 @@ error:
  */
 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) {