diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-06-27 04:36:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-06-27 04:36:03 +0000 |
commit | 7fbf320b8a93553285f702c88440c0822c66ba4d (patch) | |
tree | 862b7499b86746778e8e8441220d609f4e3cf1f6 /file.c | |
parent | 85a7f56ac0d6f6488986cb8c0139874349e1c070 (diff) | |
download | wireshark-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |