It happended when the stun_server is NULL.
[Version] 0.1.80
[Issue Type] Bug fix
Change-Id: Icd42e710ae171afd2689e67623c6b4d45b5d78f4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 0.1.79
+Version: 0.1.80
Release: 0
Group: Multimedia/API
License: Apache-2.0
{
int ret = WEBRTC_ERROR_NONE;
webrtc_state_e state;
- char *stun_server;
+ char *stun_server = NULL;
if (g_conns[index].webrtc == NULL)
return;
g_print(" webrtc[%p]", g_conns[index].webrtc);
g_print(" state[%s]", g_webrtc_state_str[state]);
- if (strlen(stun_server) > 0)
+ if (stun_server) {
g_print(" STUN server[%s]", stun_server);
-
- free(stun_server);
+ free(stun_server);
+ }
g_print("\n-----------------------------------------------------------------------------------------\n");
}