summaryrefslogtreecommitdiff
path: root/launchd/user_startx
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-04-26 23:15:13 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-04-26 23:15:13 -0700
commit4d0f9d2290bde45c0e844ce40f1caa7fb4baae0f (patch)
treee7b844ad0b4cbd50917278786cbd8b53f6d5a5de /launchd/user_startx
parent933f0b2980b375cadc58b2ef5669bc34475a7be6 (diff)
launchd: Brownbag fix string compare
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'launchd/user_startx')
-rw-r--r--launchd/user_startx/launchd_startx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/launchd/user_startx/launchd_startx.c b/launchd/user_startx/launchd_startx.c
index cf93227..41d1511 100644
--- a/launchd/user_startx/launchd_startx.c
+++ b/launchd/user_startx/launchd_startx.c
@@ -43,7 +43,7 @@ int main(int argc, char **argv, char **envp) {
pid_t child;
int pstat;
- if(argc < 2 || strcmp(argv[1], "--help")) {
+ if(argc < 2 || strcmp(argv[1], "--help") == 0) {
fprintf(stderr, "Usage: %s prog [args...]\n", argv[0]);
exit(EXIT_FAILURE);
}