eal: fix option --base-virtaddr
When parsing EAL option --base-virtaddr errno was not being set to 0 before calling strtoull, therefore function might fail unnecesarily. Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Signed-off-by: Aaron Campbell <aaron@arbor.net> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
This commit is contained in:
parent
acf2d1bb9f
commit
be1816f59e
@ -562,6 +562,7 @@ eal_parse_base_virtaddr(const char *arg)
|
||||
char *end;
|
||||
uint64_t addr;
|
||||
|
||||
errno = 0;
|
||||
addr = strtoull(arg, &end, 16);
|
||||
|
||||
/* check for errors */
|
||||
|
Loading…
Reference in New Issue
Block a user