forked from osmocom/wireshark
Added a bug fix from Erik Daughtrey that sets cf_filter to NULL after being
freed. svn path=/trunk/; revision=393
This commit is contained in:
parent
90cae40e82
commit
f04819106b
|
@ -1,7 +1,7 @@
|
|||
/* capture.c
|
||||
* Routines for packet capture windows
|
||||
*
|
||||
* $Id: capture.c,v 1.35 1999/07/24 02:42:52 guy Exp $
|
||||
* $Id: capture.c,v 1.36 1999/07/28 02:40:16 gerald Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -305,6 +305,7 @@ capture_prep_ok_cb(GtkWidget *ok_bt, gpointer parent_w) {
|
|||
|
||||
filter_text = gtk_entry_get_text(GTK_ENTRY(filter_te));
|
||||
if (cf.cfilter) g_free(cf.cfilter);
|
||||
cf.cfilter = NULL; /* ead 06/16/99 */
|
||||
if (filter_text && filter_text[0]) {
|
||||
cf.cfilter = g_strdup(gtk_entry_get_text(GTK_ENTRY(filter_te)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue