MINOR: sample: accept fetch keywords without parenthesis
fetch keywords which support arguments do not support being called
without parenthesis even if all arguments are optional. Let's fix
this to allow fetch keywords without parenthesis as is already done
in ACLs.
diff --git a/src/sample.c b/src/sample.c
index 3703a44..3e0c965 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -354,7 +354,7 @@
goto out_error;
}
}
- else if (fetch->arg_mask) {
+ else if (ARGM(fetch->arg_mask)) {
p = my_strndup(str[*idx], endw - str[*idx]);
if (p) {
snprintf(err, err_size, "missing args for fetch method '%s'.", p);