diff: cosmetic change on top of last commit
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 9 Jul 2010 17:44:38 +0000 (19:44 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 9 Jul 2010 17:44:38 +0000 (19:44 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/diff.c

index 8d91b83bfc8a448779008c5d88125852ab3f465d..3e20483300c4eaefcd4cff77b03940e06b2113ce 100644 (file)
@@ -761,9 +761,9 @@ static int FAST_FUNC add_to_dirlist(const char *filename,
 {
        struct dlist *const l = userdata;
        const char *file = filename + l->len;
-       l->dl = xrealloc_vector(l->dl, 6, l->e);
        while(*file == '/')
                file++;
+       l->dl = xrealloc_vector(l->dl, 6, l->e);
        l->dl[l->e] = xstrdup(file);
        l->e++;
        return TRUE;