X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=misc.c;h=e6d31bf232b18b64d69272bbb5c2b5d68a7a5f4f;hp=e64cad077d8d94c454bdf07db19b6e4fb99cad2b;hb=30f13c6c25be8d0fb5b0e6d819685b4e6f45829c;hpb=e8a627f964a8337caf0c71dd87b1d7533f489f57 diff --git a/misc.c b/misc.c index e64cad0..e6d31bf 100644 --- a/misc.c +++ b/misc.c @@ -394,9 +394,10 @@ static bool is_valid_int(const char *str) if (*str == '-') ++str; - // Handle empty string or just "-" + // Handle empty string or just "-". Should never reach this + // point, because this is only used with transitive verbs. if (!*str) - return false; + return false; // LCOV_EXCL_LINE // Check for non-digit chars in the rest of the stirng. while (*str)