]> Sergey Matveev's repositories - nnn.git/commitdiff
Remember to set dents to NULL
authorsin <sin@2f30.org>
Wed, 22 Oct 2014 15:28:23 +0000 (16:28 +0100)
committersin <sin@2f30.org>
Wed, 22 Oct 2014 15:29:18 +0000 (16:29 +0100)
noice.c

diff --git a/noice.c b/noice.c
index 6355defc0f06709259874df0487a8bb6be62132e..09a63db018eff8f7d579a99b64c8c3bcb8561425 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -511,6 +511,7 @@ begin:
        if (r != 0)
                goto nochange;
 
+       dents = NULL;
        n = dentfill(dirp, &dents, visible, &filter_re);
 
        /* Make sure cur is in range */