Browse code

ims_ipsec_pcscf: initialize variable to fix warnings

(cherry picked from commit afff18592998cb14561cf4fd95acd1b4866fd994)

Daniel-Constantin Mierla authored on 28/04/2021 11:28:05
Showing 1 changed files
... ...
@@ -681,8 +681,8 @@ static int delete_unused_sa_cb(const struct nlmsghdr *nlh, void *data)
681 681
     void  *cp;
682 682
     str received_host;
683 683
     ip_addr_t received_host_addr;
684
-    ipsec_t ipsec;
685
-    
684
+    ipsec_t ipsec = {0};
685
+
686 686
     cp = ((struct del_tunnels*)data)->contacts;
687 687
     while (1) {
688 688
         memcpy(&(received_host.len), cp, sizeof(received_host.len));
... ...
@@ -1080,4 +1080,4 @@ int delete_unused_tunnels()
1080 1080
 
1081 1081
     free(buf);
1082 1082
     return 0;
1083
-}
1084 1083
\ No newline at end of file
1084
+}