Browse code

sip: initialise sip_destination correctly

Raphael Coeffic authored on 29/11/2013 09:18:17
Showing 2 changed files
... ...
@@ -21,7 +21,7 @@ int parse_next_hop(const cstring& next_hop,
21 21
   const char* end = c + next_hop.len;
22 22
   const char* beg = NULL;
23 23
 
24
-  sip_destination dest = {};
24
+  sip_destination dest;
25 25
 
26 26
   for(;c<end; c++) {
27 27
 
... ...
@@ -11,6 +11,10 @@ struct sip_destination
11 11
   cstring        host;
12 12
   unsigned short port;
13 13
   cstring        trsp;
14
+
15
+  sip_destination()
16
+    : host(), port(0), trsp()
17
+  {}
14 18
 };
15 19
 
16 20
 int parse_next_hop(const cstring& next_hop,