From da3ca88cb1d6a74fb05999a31c11dc5bde383dfe Mon Sep 17 00:00:00 2001 From: Kalle Valo Date: Mon, 7 Feb 2011 15:34:03 +0200 Subject: [PATCH] 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 --- plugins/pacrunner.c | 3 --- 1 file changed, 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'; -- 2.7.4