summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-04-10 16:23:15 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-04-10 16:23:15 +0200
commita31ee19ed7861dae004451df2c1cea84c45092ed (patch)
tree2455b414c63a80bfe61dc1d77fb18f7ef7e872ff /src/main.c
parent8cf27972c87572e9b256e00a226fdaf275a1a43e (diff)
downloadratpoison-a31ee19ed7861dae004451df2c1cea84c45092ed.zip
main: in case XOpenDisplay fails, use exit not return
* this is consistent with surrounding code, and helps code analyzers not to barf about possible memory leaks
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1f815e9..ea72f67 100644
--- a/src/main.c
+++ b/src/main.c
@@ -671,7 +671,7 @@ main (int argc, char *argv[])
if (!(dpy = XOpenDisplay (display)))
{
fprintf (stderr, "Can't open display\n");
- return EXIT_FAILURE;
+ exit (EXIT_FAILURE);
}
/* Set ratpoison specific Atoms. */