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:
Matthew Daley authored and Ian Campbell committed 2013-10-31 21:55:53 +00:00
1 parent 7343db9a77
commit 96be5eab5d
1 file changed
+2 -1
+2 -1
View File
@@ -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 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.