Browse Source

set-resolution: should bail with bad arguments

K. Lange 2 years ago
parent
commit
d510c1375d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/set-resolution.c

+ 1 - 0
apps/set-resolution.c

@@ -23,6 +23,7 @@
 int main(int argc, char * argv[]) {
 	if (argc < 3) {
 		fprintf(stderr, "Usage: %s [--initialize DRIVER] WIDTH HEIGHT\n", argv[0]);
+		return 1;
 	}
 
 	/* Open framebuffer */