Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk file_dlg.c main.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 11 Oct 1999 01:39:41 -0500 (CDT)
guy         1999/10/11 01:39:35 CDT

  Modified files:
    gtk                  file_dlg.c main.c 
  Log:
  When a new display filter is to be applied, don't set "cf.dfilter" or
  "cf.dfcode" if the new filter doesn't compile, because the filter
  currently in effect will be the one that was last applied - just free up
  the text of the new filter, and whatever memory was allocated for the
  new filter code.
  
  This means we allocate a new dfilter when a new filter is to be applied,
  rather than recycling stuff from the old filter, as we want the old
  filter code to remain around if the new filter doesn't compile.
  
  This means that "cf.dfilter" and "cf.dfcode" will be null if there's no
  filter in effect.
  
  Revision  Changes    Path
  1.9       +3 -4      ethereal/gtk/file_dlg.c
  1.19      +10 -26    ethereal/gtk/main.c