summaryrefslogtreecommitdiffstats
path: root/mtools/syslinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'mtools/syslinux.c')
-rw-r--r--mtools/syslinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtools/syslinux.c b/mtools/syslinux.c
index 004bca3b..20111c62 100644
--- a/mtools/syslinux.c
+++ b/mtools/syslinux.c
@@ -193,7 +193,7 @@ int main(int argc, char *argv[])
/*
* Check to see that what we got was indeed an MS-DOS boot sector/superblock
*/
- if( !syslinux_check_bootsect(sectbuf,&errmsg) ) {
+ if( (errmsg = syslinux_check_bootsect(sectbuf)) ) {
fprintf(stderr, "%s: %s\n", program, errmsg);
exit(1);
}