[RFC v6 01/13] pacrunner: remove unitialised use of host_ret variable

2011-02-08 Thread Daniel Wagner
From: Kalle Valo kalle.v...@canonical.com

For some reason there's a null check for host_ret in parse_url(), which
is at that point is an uninitialised local variable. Just remove the check.

plugins/pacrunner.c:316:5: error: 'host_ret' may be used uninitialized in
this function
---
 plugins/pacrunner.c |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/plugins/pacrunner.c b/plugins/pacrunner.c
index 44ac3c1..f914eeb 100644
--- a/plugins/pacrunner.c
+++ b/plugins/pacrunner.c
@@ -313,9 +313,6 @@ static char * parse_url(const char *url)
if (scheme == NULL)
return NULL;
 
-   if (host_ret == NULL)
-   return NULL;
-
host = strstr(scheme, ://);
if (host != NULL) {
*host = '\0';
-- 
1.7.4

___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


Re: [RFC v6 01/13] pacrunner: remove unitialised use of host_ret variable

2011-02-08 Thread Daniel Wagner
ignore that one. just noise ;)
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman