aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/tcp_graph.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2008-12-01 07:16:32 +0000
committerStephen Fisher <steve@stephen-fisher.com>2008-12-01 07:16:32 +0000
commit5f707964bd06da42228bbaa0ab40b1d0dc87a6db (patch)
treed9a39ace8f8640ee78b83d718e761d4647245ef6 /gtk/tcp_graph.c
parenta3546bb2c375f29c341bba598190c25bd52adc19 (diff)
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
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r--gtk/tcp_graph.c3
1 files changed, 0 insertions, 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");
- }
}