summaryrefslogtreecommitdiffstats
path: root/loader2/urls.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-14 17:01:37 -0400
committerChris Lumens <clumens@redhat.com>2008-03-14 17:42:32 -0400
commitd6582f429164789639f8c68f6eeed6c3dcafb032 (patch)
tree1dc67bffe97fd1cc746fb2bbccfe716828112081 /loader2/urls.c
parent7cf25b47b76059e5596b73f896042a63e35bbaf5 (diff)
downloadanaconda-d6582f429164789639f8c68f6eeed6c3dcafb032.tar.gz
anaconda-d6582f429164789639f8c68f6eeed6c3dcafb032.tar.xz
anaconda-d6582f429164789639f8c68f6eeed6c3dcafb032.zip
Remove references to an uninitialized variable.
Diffstat (limited to 'loader2/urls.c')
-rw-r--r--loader2/urls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loader2/urls.c b/loader2/urls.c
index 9f1e639eb..718204b7b 100644
--- a/loader2/urls.c
+++ b/loader2/urls.c
@@ -167,7 +167,7 @@ int urlinstStartTransfer(struct iurlinfo * ui, char *path,
int family = -1;
struct in_addr addr;
struct in6_addr addr6;
- char *hostname, *portstr, *filestr;
+ char *hostname, *portstr;
struct hostent *host;
logMessage(INFO, "transferring %s://%s%s to a fd",
@@ -204,14 +204,14 @@ int urlinstStartTransfer(struct iurlinfo * ui, char *path,
return -2;
}
- fd = ftpGetFileDesc(ui->ftpPort, addr6, family, filestr);
+ fd = ftpGetFileDesc(ui->ftpPort, addr6, family, path);
if (fd < 0) {
close(ui->ftpPort);
if (hostname) free(hostname);
return -1;
}
} else {
- fd = httpGetFileDesc(hostname, port, filestr, extraHeaders);
+ fd = httpGetFileDesc(hostname, port, path, extraHeaders);
if (fd < 0) {
if (portstr) free(portstr);
return -1;