aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-06-27 04:36:03 +0000
committerGuy Harris <guy@alum.mit.edu>2000-06-27 04:36:03 +0000
commit7fbf320b8a93553285f702c88440c0822c66ba4d (patch)
tree862b7499b86746778e8e8441220d609f4e3cf1f6 /file.c
parent85a7f56ac0d6f6488986cb8c0139874349e1c070 (diff)
downloadwireshark-7fbf320b8a93553285f702c88440c0822c66ba4d.tar.gz
wireshark-7fbf320b8a93553285f702c88440c0822c66ba4d.tar.bz2
wireshark-7fbf320b8a93553285f702c88440c0822c66ba4d.zip
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
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 2 insertions, 1 deletions
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 <gerald@zing.org>
@@ -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);