summaryrefslogtreecommitdiff
path: root/plugins/pacrunner.c
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@canonical.com>2011-02-07 15:34:03 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-08 13:00:35 +0100
commitda3ca88cb1d6a74fb05999a31c11dc5bde383dfe (patch)
tree99be99aed6951b26ebf061205158a878e566a5b6 /plugins/pacrunner.c
parent83c71f78bfda87fbed9aca13c3fef2605fe0ce7b (diff)
downloadconnman-da3ca88cb1d6a74fb05999a31c11dc5bde383dfe.tar.gz
connman-da3ca88cb1d6a74fb05999a31c11dc5bde383dfe.tar.bz2
connman-da3ca88cb1d6a74fb05999a31c11dc5bde383dfe.zip
pacrunner: Remove unitialised use of host_ret variable
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
Diffstat (limited to 'plugins/pacrunner.c')
-rw-r--r--plugins/pacrunner.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/plugins/pacrunner.c b/plugins/pacrunner.c
index 44ac3c12..f914eeb0 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';