From 0691fa241b8026d16d5885b2b573eddcff897f10 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Wed, 8 Oct 2014 20:54:40 +0200 Subject: [PATCH] Fix a problem with log file names storage Log file names are stored in a tree to save space. They have to be merged back when the full file name is required. But an error prevented the file name from being reconstructed if two files were stored in different directories and one node of the tree has a lower depth than the next one. --- filelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filelist.c b/filelist.c index d53313a..60cabc8 100644 --- a/filelist.c +++ b/filelist.c @@ -383,7 +383,7 @@ static void FileListIter_GetNext(struct _FileListIterator *FIter) { if (FIter->Level>=FIter->TreeDepth) break; Dir=Dir->Child; - FIter->DirNodes[FIter->Level++].Dir=Dir; + FIter->DirNodes[++FIter->Level].Dir=Dir; } break; } -- 2.47.2