diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-05 18:24:59 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-05 18:24:59 +0000 |
commit | 14c4a8f23bea86e0a6eaa3b786b7eb742c23d293 (patch) | |
tree | 080715428b55b8f65ab52350c05bbcfcfb8eb2c4 /epan/frame_data.c | |
parent | e567d96a93baf737a1ec89c3b3ee2c2f38b4f758 (diff) |
se_alloc returns a non NULL pointer so we don't have to check for NULL
svn path=/trunk/; revision=30343
Diffstat (limited to 'epan/frame_data.c')
-rw-r--r-- | epan/frame_data.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/frame_data.c b/epan/frame_data.c index 72dbb3e74b..31038dffb7 100644 --- a/epan/frame_data.c +++ b/epan/frame_data.c @@ -65,17 +65,14 @@ p_add_proto_data(frame_data *fd, int proto, void *proto_data) { frame_proto_data *p1 = se_alloc(sizeof(frame_proto_data)); - g_assert(p1 != NULL); - - p1 -> proto = proto; - p1 -> proto_data = proto_data; + p1->proto = proto; + p1->proto_data = proto_data; /* Add it to the GSLIST */ fd -> pfd = g_slist_insert_sorted(fd -> pfd, (gpointer *)p1, p_compare); - } void * |