From fb77a3dcca45e1b043618b1b5c3197924399a0fa Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 5 Jun 2011 10:26:59 +0200 Subject: fix segfault if called without arguments Signed-off-by: Florian Pritz --- fb-helper.c.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb-helper.c.in b/fb-helper.c.in index 2d92caa..6980b9b 100644 --- a/fb-helper.c.in +++ b/fb-helper.c.in @@ -162,7 +162,7 @@ int main(int argc, char *argv[]) int ret = 0; - if(argc == 0) + if(argc == 1) return 1; mode = argv[1]; -- cgit v1.2.3-24-g4f1b