diff src/readpst.c @ 191:4b498fd68464

add pst_attach_to_mem() back into the shared library interface. improve developer documentation. fix memory leak caught by valgrind.
author Carl Byington <carl@five-ten-sg.com>
date Wed, 15 Apr 2009 18:39:42 -0700
parents 0a4f7ecd7452
children 320cfcba8058
line wrap: on
line diff
--- a/src/readpst.c	Tue Apr 14 22:26:17 2009 -0700
+++ b/src/readpst.c	Wed Apr 15 18:39:42 2009 -0700
@@ -1100,7 +1100,6 @@
     char sender[60];
     int  sender_known = 0;
     char *temp = NULL;
-    int attach_num;
     time_t em_time;
     char *c_time;
     char *headers = NULL;
@@ -1347,7 +1346,7 @@
     // other attachments
     {
         pst_item_attach* attach;
-        attach_num = 0;
+        int attach_num = 0;
         for (attach = item->attach; attach; attach = attach->next) {
             pst_convert_utf8_null(item, &attach->filename1);
             pst_convert_utf8_null(item, &attach->filename2);