diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-06-05 10:26:59 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-06-05 10:26:59 +0200 |
commit | fb77a3dcca45e1b043618b1b5c3197924399a0fa (patch) | |
tree | c75af7c93ddba8f888640653cfae17cbf1b4404a | |
parent | 033512b16a8afa44cd7ba3a25f8d91bf87092f2f (diff) |
fix segfault if called without arguments
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | fb-helper.c.in | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |