changeset 69:63c02a242ca9

minor code cleanup
author Carl Byington <carl@five-ten-sg.com>
date Sat, 10 May 2008 12:45:23 -0700
parents 0616a2ee9c48
children b12f4e50e2e8
files src/libpst.c src/pst2dii.cpp.in
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/libpst.c	Wed Mar 05 19:06:10 2008 -0800
+++ b/src/libpst.c	Sat May 10 12:45:23 2008 -0700
@@ -4044,7 +4044,7 @@
 
 
 pst_index_ll* pst_getID(pst_file* pf, uint64_t id) {
-    pst_index_ll *ptr = NULL;
+    pst_index_ll *ptr;
     DEBUG_ENT("pst_getID");
     if (id == 0) {
         DEBUG_RET();
@@ -4056,7 +4056,7 @@
     id -= (id & 1);
 
     DEBUG_INDEX(("Trying to find %#llx\n", id));
-    if (!ptr) ptr = pf->i_head;
+    ptr = pf->i_head;
     while (ptr && (ptr->id != id)) {
         ptr = ptr->next;
     }
--- a/src/pst2dii.cpp.in	Wed Mar 05 19:06:10 2008 -0800
+++ b/src/pst2dii.cpp.in	Sat May 10 12:45:23 2008 -0700
@@ -626,7 +626,7 @@
                 }
 
                 if (item->folder && d_ptr->child )  {
-                    //if this is a non-empty folder other than deleted items, we want to recurse into it
+                    //if this is a non-empty folder, we want to recurse into it
                     fprintf(stderr, "entering folder %s\n", item->file_as);
                     process(item, &ff, d_ptr->child);
                 } else if (item->email && (item->type == PST_TYPE_NOTE || item->type == PST_TYPE_REPORT)) {