From 06941ef57b646281abcaafd3d357bbf9dcfd3732 Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Wed, 24 Oct 2018 13:47:42 +0900 Subject: [PATCH] Fix defect detected by static analysis tool Change-Id: Icbc76a347c89052e88a22d7f0d949bc0eead74d2 --- common/ma_config_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1