From a31ee19ed7861dae004451df2c1cea84c45092ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Wed, 10 Apr 2013 16:23:15 +0200 Subject: 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 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. */ -- cgit v1.2.3