summaryrefslogtreecommitdiffstats
path: root/epan/dfilter/dfunctions.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dfilter/dfunctions.c')
-rw-r--r--epan/dfilter/dfunctions.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dfilter/dfunctions.c b/epan/dfilter/dfunctions.c
index be36424..4b09b70 100644
--- a/epan/dfilter/dfunctions.c
+++ b/epan/dfilter/dfunctions.c
@@ -176,10 +176,12 @@ df_func_compare(GSList *stack, uint32_t arg_count, df_cell_t *retval,
for (args = stack, i = 0; i < arg_count; args = args->next, i++) {
arg1 = args->data;
- for (unsigned j = 0; j < arg1->len; j++) {
- arg_fvalue = arg1->pdata[j];
- if (fv_ret == NULL || fv_cmp(arg_fvalue, fv_ret)) {
- fv_ret = arg_fvalue;
+ if (arg1 != NULL) {
+ for (unsigned j = 0; j < arg1->len; j++) {
+ arg_fvalue = arg1->pdata[j];
+ if (fv_ret == NULL || fv_cmp(arg_fvalue, fv_ret)) {
+ fv_ret = arg_fvalue;
+ }
}
}
}