From: Jongkyu Koo Date: Tue, 23 May 2017 05:28:18 +0000 (+0900) Subject: fix crash issue from robustness test X-Git-Tag: accepted/tizen/unified/20170605.151059~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F130601%2F1;p=platform%2Fcore%2Fpim%2Fcontacts-service.git fix crash issue from robustness test Change-Id: I6af3be96ad42fd6a507e3a42002bd591ae9740c5 Signed-off-by: Jongkyu Koo --- 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);