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:
Stephen Fisher 2008-12-01 07:16:32 +00:00
parent a3546bb2c3
commit 5f707964bd
1 changed files with 0 additions and 3 deletions

View File

@ -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");
}
}