Mercurial > libpst
diff src/pst2dii.cpp.in @ 195:320cfcba8058
add python module interface to the shared library for easy scripting.
the shared library must never write to stdout or stderr.
fix pst_attach_to_mem so the caller does not need to initialize the buffer pointer.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 20 Apr 2009 19:39:26 -0700 |
parents | 0a4f7ecd7452 |
children | 2f38c4ce606f |
line wrap: on
line diff
--- a/src/pst2dii.cpp.in Fri Apr 17 13:08:31 2009 -0700 +++ b/src/pst2dii.cpp.in Mon Apr 20 19:39:26 2009 -0700 @@ -204,11 +204,7 @@ if (!(fp = fopen(temp, "wb"))) { WARN(("write_separate_attachment: Cannot open attachment save file \"%s\"\n", temp)); } else { - if (current_attach->data.data) - pst_fwrite(current_attach->data.data, 1, current_attach->data.size, fp); - else { - (void)pst_attach_to_file(pst, current_attach, fp); - } + (void)pst_attach_to_file(pst, current_attach, fp); fclose(fp); } string rc(temp);