Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk capture_dlg.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: Wed, 5 Jan 2000 23:09:06 -0600 (CST)
guy         2000/01/05 23:09:04 CST

  Modified files:
    gtk                  capture_dlg.c 
  Log:
  Don't bother checking whether the filter string is empty - just use it
  even if it's empty, rather than using an empty string instead of it if
  it's empty.
  
  Also, "gtk_entry_get_text()" appears, from the documentation, always to
  return a non-null pointer (and it returned a non-null pointer when I
  started a capture with an empty filter string); don't supply a null
  string if it's null, just do a "g_assert()" to make sure it's non-null.
  
  Put in a comment explaining why we aren't trying to be clever and
  detecting an empty filter string and setting "cf.filter" to NULL if it's
  empty.
  
  Revision  Changes    Path
  1.16      +11 -6     ethereal/gtk/capture_dlg.c