aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2005-09-22 04:04:34 +0000
committerhpa <hpa>2005-09-22 04:04:34 +0000
commit77477d3af776cbc8ffce61cb63ae7a27dbe0a941 (patch)
tree38d5e68ebb2ce31f134ef38a4cd8967995fcf1cc
parent2e1fede4d545435395af8c98e44163956d9572fb (diff)
downloadsyslinux-elf-77477d3af776cbc8ffce61cb63ae7a27dbe0a941.tar.gz
syslinux-elf-77477d3af776cbc8ffce61cb63ae7a27dbe0a941.tar.xz
syslinux-elf-77477d3af776cbc8ffce61cb63ae7a27dbe0a941.zip
Fix uninitialized variables
-rw-r--r--extlinux/extlinux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extlinux/extlinux.c b/extlinux/extlinux.c
index e9c7ba37..03e84295 100644
--- a/extlinux/extlinux.c
+++ b/extlinux/extlinux.c
@@ -651,7 +651,7 @@ install_loader(const char *path, int update_only)
struct mntent *mnt = NULL;
int devfd, rv;
FILE *mtab;
- const char *devname;
+ const char *devname = NULL;
if ( stat(path, &st) || !S_ISDIR(st.st_mode) ) {
fprintf(stderr, "%s: Not a directory: %s\n", program, path);
@@ -694,7 +694,7 @@ install_loader(const char *path, int update_only)
}
if ( update_only && !already_installed(devfd) ) {
- fprintf(stderr, "%s: no previous extlinux installation found\n");
+ fprintf(stderr, "%s: no previous extlinux boot sector found\n", program);
return 1;
}