*** dfilter_expr_dlg.c	Sun Sep  7 00:22:38 2003
--- ../../../../ethereal/ethereal-0.9.15/gtk/dfilter_expr_dlg.c	Mon Sep 22 09:15:56 2003
*************** dfilter_expr_dlg_accept_cb(GtkWidget *w,
*** 874,895 ****
       * can't support, because the field's type supports slicing,
       * and the relation *is* supported on byte strings.
       */
!     if (strcmp(item_str, "==") == 0)
!         can_compare = ftype_can_eq(ftype);
!     else if (strcmp(item_str, "!=") == 0)
!         can_compare = ftype_can_ne(ftype);
!     else if (strcmp(item_str, ">") == 0)
!         can_compare = ftype_can_gt(ftype);
!     else if (strcmp(item_str, "<") == 0)
!         can_compare = ftype_can_lt(ftype);
!     else if (strcmp(item_str, ">=") == 0)
!         can_compare = ftype_can_ge(ftype);
!     else if (strcmp(item_str, "<=") == 0)
!         can_compare = ftype_can_le(ftype);
!     else if (strcmp(item_str, "contains") == 0)
!         can_compare = ftype_can_contains(ftype);
!     else
!         can_compare = TRUE;	/* not a comparison */
      if (!can_compare) {
          if (range_str == NULL) {
              simple_dialog(ESD_TYPE_CRIT | ESD_TYPE_MODAL, NULL,
--- 874,899 ----
       * can't support, because the field's type supports slicing,
       * and the relation *is* supported on byte strings.
       */
!     if (item_str){
!         if (strcmp(item_str, "==") == 0)
!             can_compare = ftype_can_eq(ftype);
!         else if (strcmp(item_str, "!=") == 0)
!             can_compare = ftype_can_ne(ftype);
!         else if (strcmp(item_str, ">") == 0)
!             can_compare = ftype_can_gt(ftype);
!         else if (strcmp(item_str, "<") == 0)
!             can_compare = ftype_can_lt(ftype);
!         else if (strcmp(item_str, ">=") == 0)
!             can_compare = ftype_can_ge(ftype);
!         else if (strcmp(item_str, "<=") == 0)
!             can_compare = ftype_can_le(ftype);
!         else if (strcmp(item_str, "contains") == 0)
!             can_compare = ftype_can_contains(ftype);
!         else
!             can_compare = TRUE;	/* not a comparison */
!     } else
!         can_compare = TRUE;
! 
      if (!can_compare) {
          if (range_str == NULL) {
              simple_dialog(ESD_TYPE_CRIT | ESD_TYPE_MODAL, NULL,
