diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util.c | 2 | ||||
-rw-r--r-- | src/tools/tor-resolve.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index efc320215d..678ae3bd52 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -316,7 +316,7 @@ int strcmpend(const char *s1, const char *s2) int strcasecmpend(const char *s1, const char *s2) { size_t n1 = strlen(s1), n2 = strlen(s2); - if (n2>n1) + if (n2>n1) /* then they can't be the same; figure out which is bigger */ return strcasecmp(s1,s2); else return strncasecmp(s1+(n1-n2), s2, n2); diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 79c7a4c3fc..a6e4402ce7 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -178,7 +178,7 @@ main(int argc, char **argv) arg = &argv[1]; n_args = argc-1; - if (argc < 2) + if (!n_args) usage(); if (!strcmp("-v", arg[0])) { |