memcapable: fix logic error
authorMichael Wallner <mike@php.net>
Mon, 13 Jan 2020 13:24:44 +0000 (14:24 +0100)
committerMichael Wallner <mike@php.net>
Mon, 13 Jan 2020 13:27:37 +0000 (14:27 +0100)
clients/memcapable.cc

index fc956fe07d891911041c80b9e04095fb14173535..31c2fc54c04203ffec5ef13123123d09661c9037 100644 (file)
@@ -2148,7 +2148,7 @@ int main(int argc, char **argv)
     }
   }
 
-  if (hostname)
+  if (!hostname)
   {
     fprintf(stderr, "No hostname was provided.\n");
     return EXIT_FAILURE;