From: munkyu.im Date: Fri, 28 Dec 2012 08:37:01 +0000 (+0900) Subject: extra: remove sonar violation X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1245 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7664c38bba6c79c310454183e6e8edba4c9775e;p=sdk%2Femulator%2Fqemu.git extra: remove sonar violation Signed-off-by: munkyu.im --- diff --git a/tizen/src/option.c b/tizen/src/option.c index fbc8ec7482..e5fee307cf 100644 --- a/tizen/src/option.c +++ b/tizen/src/option.c @@ -304,14 +304,13 @@ static void remove_string(char *src, char *dst, const char *toremove) static void getlinuxproxy(char *http_proxy, char *https_proxy, char *ftp_proxy, char *socks_proxy) { char buf[MAXLEN]; - char *buf_port; + char *buf_port = NULL; char buf_proxy[MAXLEN]; char* buf_proxy_bak; char *proxy; FILE *output; memset(buf, 0, MAXLEN); memset(buf_proxy, 0, MAXLEN); - memset(buf, 0, MAXLEN); output = popen("gconftool-2 --get /system/http_proxy/host", "r"); fscanf(output , "%s", buf);