Back up to 100% coverage.

This commit is contained in:
Aaron Traas 2017-07-21 17:22:03 -04:00
parent e8a627f964
commit 30f13c6c25
3 changed files with 24 additions and 8 deletions

5
misc.c
View file

@ -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)