pacrunner: Remove unitialised use of host_ret variable
authorKalle Valo <kalle.valo@canonical.com>
Mon, 7 Feb 2011 13:34:03 +0000 (15:34 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 8 Feb 2011 12:00:35 +0000 (13:00 +0100)
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

index 44ac3c1..f914eeb 100644 (file)
@@ -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';