From e4997cc27fc6c4473ab6ab0ef192ea00f98f5417 Mon Sep 17 00:00:00 2001 From: Jongkyu Koo Date: Tue, 23 May 2017 14:28:18 +0900 Subject: [PATCH] fix crash issue from robustness test Change-Id: I6af3be96ad42fd6a507e3a42002bd591ae9740c5 Signed-off-by: Jongkyu Koo --- common/ctsvc_inotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/ctsvc_inotify.c b/common/ctsvc_inotify.c index cbe59ca..52415db 100644 --- a/common/ctsvc_inotify.c +++ b/common/ctsvc_inotify.c @@ -590,7 +590,7 @@ static char* __ctsvc_inotify_get_username(uid_t uid) int ret = getpwuid_r(uid, &pwd, tmp, sizeof(tmp), &pwd_result); if (ret != 0 || pwd_result == NULL) { ERR("getpwuid_r() fail"); - return ""; + return NULL; } return SAFE_STRDUP(pwd.pw_name); -- 2.7.4