/* get current engine from config */
if (0 == sttd_config_get_default_engine(&cur_engine_uuid)) {
SECURE_SLOG(LOG_DEBUG, TAG_STTD, "[Engine Agent] current engine from config : %s", cur_engine_uuid);
- if (NULL != g_engine_info->engine_uuid) {
+ if (NULL != g_engine_info->engine_uuid && NULL != cur_engine_uuid) {
if (!strcmp(g_engine_info->engine_uuid, cur_engine_uuid)) {
is_default_engine = true;
}