summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunmin Lee <sunm.lee@samsung.com>2017-12-06 16:39:55 +0900
committerSunmin Lee <sunm.lee@samsung.com>2017-12-06 17:06:08 +0900
commitd423a417011d69f3be0c53382ae96437879072be (patch)
treeb5be587e4ca24ddffa37be3522d9fa566345a400
parentbbfe12cb8b0f44abdd9ebdf48c5c72bbcd55266e (diff)
downloadfactory-reset-submit/tizen_4.0/20171206.085716.tar.gz
factory-reset-submit/tizen_4.0/20171206.085716.tar.bz2
factory-reset-submit/tizen_4.0/20171206.085716.zip
Fix bug of rstsmack Change-Id: Idfb1c01e16463002a442c0097eff70182ebad4ff Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
-rw-r--r--src/rstsmack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rstsmack.c b/src/rstsmack.c
index 15fefa0..e17d696 100644
--- a/src/rstsmack.c
+++ b/src/rstsmack.c
@@ -84,7 +84,7 @@ static int parse_and_set(const char *srcfile)
while (fgets(linebuf, sizeof(linebuf), fp)) {
plabel = strstr(linebuf, " access=");
- if (plabel >= SMACK_LABEL_LEN) { // handling "The maximum input length is not specified"
+ if (plabel && strlen(plabel) >= SMACK_LABEL_LEN) { // handling "The maximum input length is not specified"
fclose(fp);
return -1;
}