diff options
| author | Michael Brown | 2020-06-19 17:56:02 +0200 |
|---|---|---|
| committer | Michael Brown | 2020-06-19 17:56:02 +0200 |
| commit | 2000297011172a9f04be41aca76411bde2c54a76 (patch) | |
| tree | a142c1e3084861f3785555037fc56488a53cc8b7 /src/util/elf2efi.c | |
| parent | [snp] Retry initialisation if link is reported as down (diff) | |
| download | ipxe-2000297011172a9f04be41aca76411bde2c54a76.tar.gz ipxe-2000297011172a9f04be41aca76411bde2c54a76.tar.xz ipxe-2000297011172a9f04be41aca76411bde2c54a76.zip | |
[util] Treat empty integer strings as invalid
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/elf2efi.c')
| -rw-r--r-- | src/util/elf2efi.c | 2 |
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 ); |
