diff options
-rw-r--r-- | common/src/check.c | 10 | ||||
-rw-r--r-- | src/parser.c | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/common/src/check.c b/common/src/check.c index eb3936f..f17e825 100644 --- a/common/src/check.c +++ b/common/src/check.c @@ -97,6 +97,16 @@ static const char *common_str_pattern[] = { "FEEDBACK_PATTERN_LIST_REORDER", "FEEDBACK_PATTERN_LIST_SLIDER", "FEEDBACK_PATTERN_VOLUME_KEY", + + "", + "", + "", + "", + "", + "", + "", + "", + "", }; static bool common_get_always_alert_case(int type, int pattern) diff --git a/src/parser.c b/src/parser.c index 9dc4c66..3bde6a6 100644 --- a/src/parser.c +++ b/src/parser.c @@ -157,6 +157,8 @@ static int load_config(struct parse_result *result, void *user_data) value = result->value; for (i = 0; i < profile->max_pattern; i++) { + if (!profile->str_pattern[i]) + continue; if (!MATCH(name, (char *)profile->str_pattern[i])) continue; |