summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-08-03 12:14:27 -0500
committerGitHub <noreply@github.com>2020-08-03 12:14:27 -0500
commit8c95418334957161cfe9ca888c3f9e10fb495d21 (patch)
tree6cd57986842ed7b934bd7f2abe6add5778c6849b
parent0ac2f6616a5f0f3ab10b53dcf294862d87116421 (diff)
parent744f20790cae868ee435dcceefdfa4c40fd21925 (diff)
Merge pull request #25 from geistesk/error-maybe-uninitialized
getatom: fix potential uninitialized atom variable
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 433c4b1..af0faa0 100644
--- 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;