]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix a problem with log file names storage
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 8 Oct 2014 18:54:40 +0000 (20:54 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 8 Oct 2014 18:54:40 +0000 (20:54 +0200)
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

index d53313a0502af9fe6cb836694bde1e57a5e9d3a2..60cabc8958bb3a17fcfd67707b51978685f330d2 100644 (file)
@@ -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;
                }