aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dfilter')
-rw-r--r--epan/dfilter/dfilter-macro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dfilter/dfilter-macro.c b/epan/dfilter/dfilter-macro.c
index 7bc3a87d21..1012e13d29 100644
--- a/epan/dfilter/dfilter-macro.c
+++ b/epan/dfilter/dfilter-macro.c
@@ -170,8 +170,9 @@ static gchar* dfilter_macro_resolve(gchar* name, gchar** args, const gchar** err
}
if (!m) {
- if (fvt_cache && (e = g_hash_table_lookup(fvt_cache,name) )) {
- if(e->usable != NULL) {
+ if (fvt_cache &&
+ (e = g_hash_table_lookup(fvt_cache,name)) != NULL) {
+ if(e->usable) {
return e->repr;
} else {
*error = ep_strdup_printf("macro '%s' is unusable", name);