commit 8c95418334957161cfe9ca888c3f9e10fb495d21
parent 0ac2f6616a5f0f3ab10b53dcf294862d87116421
Author: Devin J. Pohly <djpohly@gmail.com>
Date: Mon, 3 Aug 2020 12:14:27 -0500
Merge pull request #25 from geistesk/error-maybe-uninitialized
getatom: fix potential uninitialized atom variable
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dwl.c b/dwl.c
@@ -762,7 +762,7 @@ focustop(Monitor *m)
Atom
getatom(xcb_connection_t *xc, const char *name)
{
- Atom atom;
+ Atom atom = 0;
xcb_generic_error_t *error;
xcb_intern_atom_cookie_t cookie;
xcb_intern_atom_reply_t *reply;