diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 12:29:03 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 12:29:03 -0800 |
commit | 06186d82c57b2545db2d6b1a6665f23d1b6a3cfd (patch) | |
tree | b7ed023556ace6cafd037590ef4ddcd82e58d969 /xstdcmap.c | |
parent | 701d5f797a77ba3b3ff2d8c25b7951563d7e4363 (diff) |
-help should not fail if display cannot be opened
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xstdcmap.c')
-rw-r--r-- | xstdcmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -339,16 +339,16 @@ main(int argc, char *argv[]) parse(argc, argv); + if (help) { + usage(0); + } + if ((dpy = XOpenDisplay(display_name)) == NULL) { (void) fprintf(stderr, "%s: cannot open display \"%s\".\n", program_name, XDisplayName(display_name)); exit(1); } - if (help) { - usage(0); - } - if (all) { if (verbose) (void) fprintf(stderr, |