diff options
author | Richard Sharpe <sharpe@ns.aus.com> | 2000-09-11 22:43:02 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@ns.aus.com> | 2000-09-11 22:43:02 +0000 |
commit | bf8e6e763f2b46bc0e166d18af479876461423ec (patch) | |
tree | f25b4bbfd1af1c3efd8890d195af4f1f1a4e393d /file.c | |
parent | a85cf466cef9af9d9d03d27ca31c3851b0960fa3 (diff) | |
download | wireshark-bf8e6e763f2b46bc0e166d18af479876461423ec.tar.gz wireshark-bf8e6e763f2b46bc0e166d18af479876461423ec.tar.bz2 wireshark-bf8e6e763f2b46bc0e166d18af479876461423ec.zip |
Fix the problem with resetting per-frame state info problems that there
seemed to be ...
svn path=/trunk/; revision=2412
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.218 2000/09/11 07:33:55 sharpe Exp $ + * $Id: file.c,v 1.219 2000/09/11 22:43:02 sharpe Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -978,15 +978,14 @@ rescan_packets(capture_file *cf, const char *action, gboolean refilter, * data (the per-frame data itself was freed by * "init_all_protocols()"). */ fdata->flags.visited = 0; - fdata->pfd = NULL; - } - /* If there is any per-frame data, delete that, as what it points to - * has gone as well. - */ + /* If there is any per-frame data, delete that, as what it points to + * has gone as well. + */ - if (fdata->pfd) { - g_slist_free(fdata->pfd); + if (fdata->pfd) { + g_slist_free(fdata->pfd); + } fdata->pfd = NULL; } |