mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xentrace: undeadify invalid option argument handling
Apparently it's always been like this. Coverity-ID: 1056153 Signed-off-by: Matthew Daley <mattjd@gmail.com> Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
7343db9a77
commit
96be5eab5d
1 file changed
+2
-1
@@ -858,10 +858,11 @@ long sargtol(const char *restrict arg, int base)
|
||||
|
||||
|
||||
return val;
|
||||
|
||||
invalid:
|
||||
return 0;
|
||||
fprintf(stderr, "Invalid option argument: %s\n\n", arg);
|
||||
usage();
|
||||
return 0; /* not actually reached */
|
||||
}
|
||||
|
||||
/* convert the argument string pointed to by arg to a long int representation */
|
||||
|
||||