about summary refs log tree commit diff
path: root/nitroctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'nitroctl.c')
-rw-r--r--nitroctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nitroctl.c b/nitroctl.c
index 61841b3..27d0780 100644
--- a/nitroctl.c
+++ b/nitroctl.c
@@ -318,7 +318,7 @@ main(int argc, char *argv[])
 		exit(111);
 	}
 
-	char *service = normalize(argv[2]);
+	char *service = argc > 2 ? normalize(argv[2]) : 0;
 
 	if (argv[1]) {
 		if (strcmp(argv[1], "start") == 0 && service)