summaryrefslogtreecommitdiffstats
path: root/loader2/hdinstall.c
diff options
context:
space:
mode:
authortwaugh <twaugh>2004-11-02 11:24:46 +0000
committertwaugh <twaugh>2004-11-02 11:24:46 +0000
commitd34292a6e6c2142a1097ea4fd02b059378c5c4b9 (patch)
tree1846065e25a2004a7b378922d8b6f1e09e926a3a /loader2/hdinstall.c
parente88db003cbe10765e5271dcd15d6f74b0bb0f01c (diff)
downloadanaconda-d34292a6e6c2142a1097ea4fd02b059378c5c4b9.tar.gz
anaconda-d34292a6e6c2142a1097ea4fd02b059378c5c4b9.tar.xz
anaconda-d34292a6e6c2142a1097ea4fd02b059378c5c4b9.zip
2004-11-02 Tim Waugh <twaugh@redhat.com>
* loader2/hdinstall.c (mountHardDrive): Pass the correct pointer to free() (bug #137533).
Diffstat (limited to 'loader2/hdinstall.c')
-rw-r--r--loader2/hdinstall.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/loader2/hdinstall.c b/loader2/hdinstall.c
index 6ab7baafa..d6fc72d5c 100644
--- a/loader2/hdinstall.c
+++ b/loader2/hdinstall.c
@@ -292,10 +292,11 @@ char * mountHardDrive(struct installMethod * method,
loaderData->method = NULL;
} else {
/* if we start with /dev, strip it (#121486) */
- if (!strncmp(kspartition, "/dev/", 5))
- kspartition = kspartition + 5;
+ char *kspart = kspartition;
+ if (!strncmp(kspart, "/dev/", 5))
+ kspart = kspart + 5;
- url = setupIsoImages(kspartition, ksdirectory, flags);
+ url = setupIsoImages(kspart, ksdirectory, flags);
if (!url) {
logMessage("unable to find %s installation images on hd",getProductName());
free(loaderData->method);