diff --git a/libs/FScreen.c b/libs/FScreen.c index 6cc1693d6..d65931770 100644 --- a/libs/FScreen.c +++ b/libs/FScreen.c @@ -824,13 +824,12 @@ FindScreenOfXY(int x, int y) return (m); } - struct monitor *m_min; + struct monitor *m_min = NULL; if (m == NULL) { /* No monitor found, point is in a dead area. * Find closest monitor using the taxi cab metric. */ int dmin = INT_MAX; - struct monitor *m_min; RB_FOREACH(m, monitors, &monitor_q) { int d = 0;