From 7fbf320b8a93553285f702c88440c0822c66ba4d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 27 Jun 2000 04:36:03 +0000 Subject: Patch from Ben Fowler to rename the global variable "cf" to "cfile", to make it easier to use grep to find all references to it without getting a lot of false hits and to check, after allocating the memory chunk for "frame_data" structures, that the allocation succeeded. svn path=/trunk/; revision=2092 --- file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 31e5e64080..98b785996b 100644 --- a/file.c +++ b/file.c @@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.189 2000/05/19 23:06:06 gram Exp $ + * $Id: file.c,v 1.190 2000/06/27 04:35:44 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -174,6 +174,7 @@ open_cap_file(char *fname, gboolean is_tempfile, capture_file *cf) sizeof(frame_data), FRAME_DATA_CHUNK_SIZE * sizeof(frame_data), G_ALLOC_AND_FREE); + g_assert(cf->plist_chunk); return (0); -- cgit v1.2.3