Handle a filter that evaluates to an empty "matches everything" filter.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Apr 2006 20:07:16 +0000 (20:07 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Apr 2006 20:07:16 +0000 (20:07 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17835 f5534014-38df-0310-8fa8-9805f1628bb7

dftest.c

index 96cb58c2e2d0fa163ad0f70a347044ad50e89f8a..a0d21997b446de5819413875480cce81edf85b06 100644 (file)
--- a/dftest.c
+++ b/dftest.c
@@ -141,7 +141,10 @@ main(int argc, char **argv)
 
        printf("\n\n");
 
-       dfilter_dump(df);
+       if (df == NULL)
+               printf("Filter is empty\n");
+       else
+               dfilter_dump(df);
 
        epan_cleanup();
        exit(0);