Currently we'll call the function even when the patterns is an empty
string.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/174
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
}
}
- if (node->values) {
+ if (pushed && node->values) {
const char *s = strbuf_str(buf);
if (s != NULL && fnmatch(s, subkey, 0) == 0)
}
}
- if (node->values.len > 0) {
+ if (pushed && node->values.len > 0) {
const char *s = strbuf_str(buf);
if (s != NULL && fnmatch(s, subkey, 0) == 0)