diff options
| author | Simon Rettberg | 2020-08-12 12:27:02 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2020-08-12 12:27:02 +0200 |
| commit | df1f1c469e65156c18dd98931618a7d37c9d8691 (patch) | |
| tree | 12bf4fe1a74701b5f86a696d1e28822dac055765 /src/core/parseopt.c | |
| parent | Revert "Revert "[build] Construct full version number automatically from git ... (diff) | |
| parent | [efi] Use device path to locate filesystem from which we were loaded (diff) | |
| download | ipxe-df1f1c469e65156c18dd98931618a7d37c9d8691.tar.gz ipxe-df1f1c469e65156c18dd98931618a7d37c9d8691.tar.xz ipxe-df1f1c469e65156c18dd98931618a7d37c9d8691.zip | |
Merge branch 'master' into openslx
Diffstat (limited to 'src/core/parseopt.c')
| -rw-r--r-- | src/core/parseopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/parseopt.c b/src/core/parseopt.c index 3ddf94f3d..007080088 100644 --- a/src/core/parseopt.c +++ b/src/core/parseopt.c @@ -93,7 +93,7 @@ int parse_integer ( char *text, unsigned int *value ) { /* Parse integer */ *value = strtoul ( text, &endp, 0 ); - if ( *endp ) { + if ( *endp || ( ! *text ) ) { printf ( "\"%s\": invalid integer value\n", text ); return -EINVAL_INTEGER; } |
