Gisle Vanem fixed the bad argc check
authorDaniel Stenberg <daniel@haxx.se>
Tue, 9 Mar 2004 09:43:30 +0000 (09:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Mar 2004 09:43:30 +0000 (09:43 +0000)
ahost.c

diff --git a/ahost.c b/ahost.c
index f643c75..2d62076 100644 (file)
--- a/ahost.c
+++ b/ahost.c
@@ -52,7 +52,7 @@ int main(int argc, char **argv)
   WSAStartup(wVersionRequested, &wsaData);
 #endif  
 
-  if (argc == 0)
+  if (argc <= 1)
     usage();
 
   status = ares_init(&channel);