aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/elf2efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/elf2efi.c')
-rw-r--r--src/util/elf2efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/elf2efi.c b/src/util/elf2efi.c
index bcd53c9af..4f517d7d2 100644
--- a/src/util/elf2efi.c
+++ b/src/util/elf2efi.c
@@ -996,7 +996,7 @@ static int parse_options ( const int argc, char **argv,
switch ( c ) {
case 's':
opts->subsystem = strtoul ( optarg, &end, 0 );
- if ( *end ) {
+ if ( *end || ( ! *optarg ) ) {
eprintf ( "Invalid subsytem \"%s\"\n",
optarg );
exit ( 2 );