diff options
author | pr.jung <pr.jung@samsung.com> | 2016-10-31 10:52:03 +0900 |
---|---|---|
committer | pr.jung <pr.jung@samsung.com> | 2016-10-31 10:52:03 +0900 |
commit | 09e47b22a771b3563da88b171d5d5e3aa258ef3a (patch) | |
tree | e19152a1e01bcc168f6af224a1a4f75e1d6c9e3b /src | |
parent | d7450b97c2b4bf4d3c2e1f038bdc3bd9857ff634 (diff) | |
download | libsvi-09e47b22a771b3563da88b171d5d5e3aa258ef3a.tar.gz libsvi-09e47b22a771b3563da88b171d5d5e3aa258ef3a.tar.bz2 libsvi-09e47b22a771b3563da88b171d5d5e3aa258ef3a.zip |
Arrange common str_pattern to fit in PATTERN_MAXsubmit/tizen/20161031.030614accepted/tizen/wearable/20161031.082424accepted/tizen/tv/20161031.082414accepted/tizen/mobile/20161031.082410accepted/tizen/ivi/20161031.082443accepted/tizen/common/20161031.121827
If str_pattern is null, skip configuration parsing
Change-Id: Iaafd617da70bebfc09417b8359ade6079ea3fa86
Signed-off-by: pr.jung <pr.jung@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |