From ad0a889ca96cd06881217f9189e739fe02b9406b Mon Sep 17 00:00:00 2001 From: Semun Lee Date: Tue, 20 Mar 2018 11:07:48 +0900 Subject: [PATCH] Initialize string buffer Change-Id: I3dc17c434d18fbd75524bf956a8000f75e57ee7d Signed-off-by: Semun Lee --- src/app_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app_info.c b/src/app_info.c index e3da11b..d101c22 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -271,7 +271,7 @@ static int _check_privilege(char *privilege) int fd; int ret; - char client[SMACK_LABEL_LEN + 1] = ""; + char client[SMACK_LABEL_LEN + 1] = {0,}; char uid[10] = {0,}; char *client_session = ""; -- 2.7.4