diff --git a/ffserver.c b/ffserver.c
index c397d4b0de6ecc7e5e25c3bf2d1853972d63e3bf..f8ccfcb077652e7e25800d2c82438b77ee2d2f53 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -4443,7 +4443,7 @@ int main(int argc, char **argv)
         case '?':
         case 'h':
             show_help();
-            exit(1);
+            exit(0);
         case 'n':
             no_launch = 1;
             break;