From 5f707964bd06da42228bbaa0ab40b1d0dc87a6db Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Mon, 1 Dec 2008 07:16:32 +0000 Subject: [PATCH] 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 --- gtk/tcp_graph.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c index e01ec6791e..2a3e67a38e 100644 --- a/gtk/tcp_graph.c +++ b/gtk/tcp_graph.c @@ -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"); - } }