From: Ji-hoon Lee Date: Wed, 24 Oct 2018 04:47:42 +0000 (+0900) Subject: Fix defect detected by static analysis tool X-Git-Tag: submit/tizen/20190213.101901~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06941ef57b646281abcaafd3d357bbf9dcfd3732;p=platform%2Fcore%2Fuifw%2Fmulti-assistant.git Fix defect detected by static analysis tool Change-Id: Icbc76a347c89052e88a22d7f0d949bc0eead74d2 --- diff --git a/common/ma_config_mgr.c b/common/ma_config_mgr.c index b66a110..cfbee5d 100644 --- a/common/ma_config_mgr.c +++ b/common/ma_config_mgr.c @@ -202,7 +202,7 @@ int ma_config_mgr_get_assistant_info(ma_ui_assistant_info_cb callback, void* use if (d) { while (NULL != (dir = readdir(d))) { - if (suffix && dir->d_name && strlen(suffix) <= strlen(dir->d_name)) { + if (suffix && strlen(suffix) <= strlen(dir->d_name)) { if (0 == strcmp(dir->d_name + strlen(dir->d_name) - strlen(suffix), suffix)) { char fullpath[_POSIX_PATH_MAX]; snprintf(fullpath, _POSIX_PATH_MAX - 1, "%s/%s", MA_ASSISTANT_INFO, dir->d_name);