forked from osmocom/wireshark
Remove call to deprecated perror() and a check to see if g_malloc() failed
since g_malloc will terminate the program if it cannot allocate memory instead of returning NULL. svn path=/trunk/; revision=26886
This commit is contained in:
parent
a3546bb2c3
commit
5f707964bd
|
@ -1694,9 +1694,6 @@ tapall_tcpip_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, cons
|
|||
|
||||
if(!segment){
|
||||
segment=g_malloc(sizeof (struct segment));
|
||||
if(!segment){
|
||||
perror ("malloc failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue