diff --git a/src/entry.cpp b/src/entry.cpp
index ee3d0ae..bee917c 100644
--- a/src/entry.cpp
+++ b/src/entry.cpp
@@ -307,8 +307,7 @@ void Entry::createNavigationIndex(EntryNav *rootNav,FileStorage *storage,FileDef
     //printf("saveEntries: %d children\n",root->sublist->count());
     // store all child entries of root, but keep the navigation info (=index)
     QListIterator<Entry> eli(*m_sublist);
-    Entry *e;
-    for (eli.toFirst();(e=eli.current());++eli)
+    for (eli.toFirst();eli.current();++eli)
     {
       createSubtreeIndex(rootNav,storage,fd);
     }
