Correct minor issues reported by the analyzer.
Found with the Clang Static Analyzer.
This commit is contained in:
parent
64f2a7561d
commit
c8032d552d
|
@ -248,6 +248,7 @@ int i3_send_msg(uint32_t type, const char *payload) {
|
||||||
memcpy(walk, &type, sizeof(uint32_t));
|
memcpy(walk, &type, sizeof(uint32_t));
|
||||||
walk += sizeof(uint32_t);
|
walk += sizeof(uint32_t);
|
||||||
|
|
||||||
|
if (payload != NULL)
|
||||||
strncpy(walk, payload, len);
|
strncpy(walk, payload, len);
|
||||||
|
|
||||||
uint32_t written = 0;
|
uint32_t written = 0;
|
||||||
|
|
|
@ -51,7 +51,7 @@ xcb_charinfo_t *font_table;
|
||||||
/* These are only relevant for XKB, which we only need for grabbing modifiers */
|
/* These are only relevant for XKB, which we only need for grabbing modifiers */
|
||||||
Display *xkb_dpy;
|
Display *xkb_dpy;
|
||||||
int xkb_event_base;
|
int xkb_event_base;
|
||||||
int mod_pressed;
|
int mod_pressed = 0;
|
||||||
|
|
||||||
/* Because the statusline is the same on all outputs, we have
|
/* Because the statusline is the same on all outputs, we have
|
||||||
* global buffer to render it on */
|
* global buffer to render it on */
|
||||||
|
@ -409,7 +409,7 @@ void xcb_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
|
||||||
*/
|
*/
|
||||||
void xkb_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
|
void xkb_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
|
||||||
XkbEvent ev;
|
XkbEvent ev;
|
||||||
int modstate;
|
int modstate = 0;
|
||||||
|
|
||||||
DLOG("Got XKB-Event!\n");
|
DLOG("Got XKB-Event!\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue