]> git.neil.brown.name Git - edlib.git/commitdiff
Fix uninitialised variable in lib-tile
authorNeilBrown <neil@brown.name>
Wed, 18 Nov 2015 02:45:07 +0000 (13:45 +1100)
committerNeilBrown <neil@brown.name>
Wed, 18 Nov 2015 02:45:07 +0000 (13:45 +1100)
Signed-off-by: NeilBrown <neil@brown.name>
lib-tile.c

index a5fda08d2546465e41f1d89ac456324ada9e9320..2811e346e54f0954a070433c2746ba3c3febc0c9 100644 (file)
@@ -456,7 +456,7 @@ static int tile_grow(struct pane *p, int horiz, int size)
 
        /* OK, this stacks in the right direction. if shrinking we can commit */
        if (size < 0) {
-               struct pane *other;
+               struct pane *other = NULL;
                struct pane *t;
                int p_found = 0;
                list_for_each_entry(t, &p->parent->children, siblings) {