diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-04-10 16:23:15 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-04-10 16:23:15 +0200 |
commit | a31ee19ed7861dae004451df2c1cea84c45092ed (patch) | |
tree | 2455b414c63a80bfe61dc1d77fb18f7ef7e872ff /src | |
parent | 8cf27972c87572e9b256e00a226fdaf275a1a43e (diff) | |
download | ratpoison-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')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |