webrtc_ini: Return NULL when empty string is returned by iniparser_getstring() 38/248038/2
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 20 Nov 2020 00:30:06 +0000 (09:30 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 20 Nov 2020 05:15:48 +0000 (14:15 +0900)
[Version] 0.1.60
[Issue Type] Improvement

Change-Id: I50e03c14ad4a0eb7dff421c89086e61e0a90b390
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_ini.c

index 9d7353ece772dc0ac7085cc8b8b49855bbba0574..7c2fe7a38cb623fcad45e00a4fceae20eb099fe2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.1.59
+Version:    0.1.60
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 00d1eedda311a36fe17f7b7aacd60f0b5d01117a..f884b18718317a4e083d0a28a2ff8258570f458d 100644 (file)
@@ -224,6 +224,9 @@ static const char* __ini_get_string(dictionary *dict, const char *category, cons
 
        g_free(path);
 
+       if (ret_val != NULL && strlen(ret_val) == 0)
+               return default_value;
+
        return ret_val;
 }