diff src/libpst.c @ 69:63c02a242ca9

minor code cleanup
author Carl Byington <carl@five-ten-sg.com>
date Sat, 10 May 2008 12:45:23 -0700
parents cfd6175f9334
children 3cb02cb1e6cd
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;
     }