]> git.sur5r.net Git - i3/i3/commitdiff
initialize most to NULL, fixes warning
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 7 Aug 2011 18:45:06 +0000 (20:45 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 7 Aug 2011 18:45:06 +0000 (20:45 +0200)
src/con.c

index 5b5acc1b1b4598007a32f67cded10669e638f5e0..b8b652b316c87e5e21f0aa17a4c476670822f91d 100644 (file)
--- a/src/con.c
+++ b/src/con.c
@@ -781,7 +781,7 @@ Con *con_descend_tiling_focused(Con *con) {
  *
  */
 Con *con_descend_direction(Con *con, direction_t direction) {
-    Con *most;
+    Con *most = NULL;
     DLOG("con_descend_direction(%p, %d)\n", con, direction);
     if (direction == D_LEFT || direction == D_RIGHT) {
         if (con->orientation == HORIZ) {