Initialize tmp_info to avoid warnings from clang:

"Assigned value is garbage or undefined".

svn path=/trunk/; revision=33714
This commit is contained in:
Stig Bjørlykke 2010-08-05 07:12:56 +00:00
parent 5dc817d6d6
commit 4a72d7eabc
1 changed files with 11 additions and 1 deletions

View File

@ -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.len = 16;
}
else
{
tmp_info.src.type = AT_NONE;
tmp_info.src.len = 0;
}
addr = g_malloc(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.len = 16;
}
else
{
tmp_info.dst.type = AT_NONE;
tmp_info.dst.len = 0;
}
addr = g_malloc(tmp_info.dst.len);
memcpy(addr, sctp_info->ip_dst.data, tmp_info.dst.len);
tmp_info.dst.data = addr;