Resolve the assertion string null error 99/54099/4
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 11 Dec 2015 10:00:40 +0000 (19:00 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Mon, 21 Dec 2015 04:26:15 +0000 (13:26 +0900)
Change-Id: Ide7a416d5aa09bb9786405297845e153c3dc6739

src/muse_core_config.c

index 2a01327..b72bcd1 100644 (file)
@@ -67,7 +67,7 @@ static int _muse_core_config_parser(void)
        for (idx = 0 ; idx < MUSE_MAX_PARAM_NUM; idx++) {
                char gst_param_value[MUSE_MAX_PARAM_STRLEN];
                memset(gst_param_value, 0, MUSE_MAX_PARAM_STRLEN);
-               snprintf(gst_param_value, strlen(MUSEGST) + ((idx + 1) / 10) + 1, "%s%d", MUSEGST, idx+1);
+               snprintf(gst_param_value, strlen(MUSEGST) + 2, "%s%d", MUSEGST, idx + 1);
 
                str = iniparser_getstring(g_muse_core_conf->muse_dict, gst_param_value, NULL);
                g_strstrip(str);
@@ -81,7 +81,7 @@ static int _muse_core_config_parser(void)
                        LOGE("Error - gst param allocation");
                        _muse_core_config_free();
                }
-               LOGD("gst_param%d: %s", (g_muse_core_conf->gst_param_cnt)++, g_muse_core_conf->gst_param_str[idx]);
+               LOGD("gstparam%d: %s", (g_muse_core_conf->gst_param_cnt)++, g_muse_core_conf->gst_param_str[idx]);
        }
 
        g_muse_core_conf->type = 0;