summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpr.jung <pr.jung@samsung.com>2016-10-31 10:52:03 +0900
committerpr.jung <pr.jung@samsung.com>2016-10-31 10:52:03 +0900
commit09e47b22a771b3563da88b171d5d5e3aa258ef3a (patch)
treee19152a1e01bcc168f6af224a1a4f75e1d6c9e3b /src
parentd7450b97c2b4bf4d3c2e1f038bdc3bd9857ff634 (diff)
downloadlibsvi-09e47b22a771b3563da88b171d5d5e3aa258ef3a.tar.gz
libsvi-09e47b22a771b3563da88b171d5d5e3aa258ef3a.tar.bz2
libsvi-09e47b22a771b3563da88b171d5d5e3aa258ef3a.zip
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.c2
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;