Initialize tmp_info to avoid warnings from clang:
"Assigned value is garbage or undefined". svn path=/trunk/; revision=33714
This commit is contained in:
parent
5dc817d6d6
commit
4a72d7eabc
|
@ -565,6 +565,11 @@ packet(void *tapdata _U_, packet_info *pinfo , epan_dissect_t *edt _U_ , const v
|
||||||
tmp_info.src.type = AT_IPv6;
|
tmp_info.src.type = AT_IPv6;
|
||||||
tmp_info.src.len = 16;
|
tmp_info.src.len = 16;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tmp_info.src.type = AT_NONE;
|
||||||
|
tmp_info.src.len = 0;
|
||||||
|
}
|
||||||
|
|
||||||
addr = g_malloc(tmp_info.src.len);
|
addr = g_malloc(tmp_info.src.len);
|
||||||
memcpy(addr, sctp_info->ip_src.data, tmp_info.src.len);
|
memcpy(addr, sctp_info->ip_src.data, tmp_info.src.len);
|
||||||
|
@ -582,7 +587,12 @@ packet(void *tapdata _U_, packet_info *pinfo , epan_dissect_t *edt _U_ , const v
|
||||||
tmp_info.dst.type = AT_IPv6;
|
tmp_info.dst.type = AT_IPv6;
|
||||||
tmp_info.dst.len = 16;
|
tmp_info.dst.len = 16;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tmp_info.dst.type = AT_NONE;
|
||||||
|
tmp_info.dst.len = 0;
|
||||||
|
}
|
||||||
|
|
||||||
addr = g_malloc(tmp_info.dst.len);
|
addr = g_malloc(tmp_info.dst.len);
|
||||||
memcpy(addr, sctp_info->ip_dst.data, tmp_info.dst.len);
|
memcpy(addr, sctp_info->ip_dst.data, tmp_info.dst.len);
|
||||||
tmp_info.dst.data = addr;
|
tmp_info.dst.data = addr;
|
||||||
|
|
Loading…
Reference in New Issue