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: Tue, 12 Oct 1999 00:01:27 -0500 (CDT)
guy         1999/10/12 00:01:19 CDT

  Modified files:
    gtk                  file_dlg.c main.c 
  Log:
  Have "dfilter_compile()" return 0 on success and 1 on failure, and
  return the pointer to the compiled filter through a pointer argument.
  
  Have it check whether the filter is a null filter and, if so, free up
  the filter and supply a filter pointer, rather than obliging its callers
  to check whether the filter actually has any code.  (Well, they may want
  to check if the filter is null, so that they don't save a pointer to the
  filter text, e.g. so that the display filter displays as "none" rather
  than as a blank string in the summary box.)
  
  In the process, fix the check in "gtk/file_dlg.c" that tests whether the
  read filter compiled successfully.
  
  Revision  Changes    Path
  1.10      +4 -7      ethereal/gtk/file_dlg.c
  1.21      +8 -3      ethereal/gtk/main.c