progs/wgl: Quit after displaying usage for -h option.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 16 Jun 2009 11:34:29 +0000 (12:34 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 16 Jun 2009 11:34:29 +0000 (12:34 +0100)
progs/wgl/wglthreads/wglthreads.c

index 4e53fa8dee56890c7777e52f927e030ad48fd052..1a8219ccc94d4037d504e9aa55069d64847f1a52 100644 (file)
@@ -541,6 +541,7 @@ main(int argc, char *argv[])
    for (i = 1; i < argc; i++) {
       if (strcmp(argv[i], "-h") == 0) {
          usage();
+         exit(0);
       }
       else if (strcmp(argv[i], "-l") == 0) {
          Locking = 1;