Enable build with iniparser v 3.1 28/16728/1 accepted/tizen/generic accepted/tizen/mobile accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_generic accepted/tizen_ivi_panda accepted/tizen_ivi_release tizen_3.0.2014.q3_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_ivi_release accepted/tizen/generic/20140225.191337 accepted/tizen/generic/20140312.095105 accepted/tizen/ivi/20140228.011911 accepted/tizen/ivi/panda/20140312.111732 accepted/tizen/ivi/release/20140312.115105 accepted/tizen/mobile/20140225.082033 submit/tizen/20140225.081550 submit/tizen/20140312.070658 submit/tizen_ivi_release/20140312.071134 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release
authorNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Mon, 24 Feb 2014 10:00:14 +0000 (11:00 +0100)
committerNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Mon, 24 Feb 2014 10:00:24 +0000 (11:00 +0100)
Bug-Tizen: PTREL-101
Change-Id: I86db5fcfe772ef0037730c22f3559cf67ef38c46
Signed-off-by: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
avsys-audio-logical-volume.c

index bf4861e..746208f 100644 (file)
@@ -408,7 +408,7 @@ int avsys_audio_load_volume_from_ini(void)
                        key = malloc(strlen(dev_str[dev_idx]) + strlen(vol_type_str[vol_type_idx]) + 2);
                        if (key) {
                                sprintf(key, "%s:%s", dev_str[dev_idx], vol_type_str[vol_type_idx]);
-                               list_str = iniparser_getstr(dict, key);
+                               list_str = iniparser_getstring(dict, key, NULL);
                                if (list_str) {
                                        token = strtok_r(list_str, delimiter, &ptr);
                                        while (token) {
@@ -425,7 +425,7 @@ int avsys_audio_load_volume_from_ini(void)
                key = malloc(strlen(dev_str[dev_idx]) + strlen("gain") + 2);
                if (key) {
                        sprintf(key, "%s:gain", dev_str[dev_idx]);
-                       list_str = iniparser_getstr(dict, key);
+                       list_str = iniparser_getstring(dict, key, NULL);
                        if (list_str) {
                                token = strtok_r(list_str, delimiter, &ptr);
                                while (token) {