Merge pull request #25 from geistesk/error-maybe-uninitialized

getatom: fix potential uninitialized atom variable
main
Devin J. Pohly 2020-08-03 12:14:27 -05:00 committed by GitHub
commit 8c95418334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
dwl.c
View File

@ -762,7 +762,7 @@ focustop(Monitor *m)
Atom Atom
getatom(xcb_connection_t *xc, const char *name) getatom(xcb_connection_t *xc, const char *name)
{ {
Atom atom; Atom atom = 0;
xcb_generic_error_t *error; xcb_generic_error_t *error;
xcb_intern_atom_cookie_t cookie; xcb_intern_atom_cookie_t cookie;
xcb_intern_atom_reply_t *reply; xcb_intern_atom_reply_t *reply;