add assert to get rid of false-positive scan-build warning

This commit is contained in:
Sascha Kruse 2012-10-08 09:29:06 +02:00
parent 4f39381db9
commit 2b73d80e54

View File

@ -1194,6 +1194,7 @@ int select_screen(XineramaScreenInfo * info, int info_len)
} else {
int x, y;
assert(f_mode == FOLLOW_MOUSE || f_mode == FOLLOW_KEYBOARD);
Window root = RootWindow(dc->dpy, DefaultScreen(dc->dpy));
if (f_mode == FOLLOW_MOUSE) {