Mercurial > libpst
comparison src/getidblock.c @ 298:201464dd356e
add default character set for items where the pst file does not specify a character set
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 02 Aug 2011 17:02:39 -0700 |
parents | 4573b536177f |
children | 26c48ea9d896 |
comparison
equal
deleted
inserted
replaced
297:8b3a827b71f4 | 298:201464dd356e |
---|---|
115 sid = argv[optind + 1]; | 115 sid = argv[optind + 1]; |
116 i_id = (uint64_t)strtoll(sid, NULL, 0); | 116 i_id = (uint64_t)strtoll(sid, NULL, 0); |
117 | 117 |
118 DEBUG_INFO(("Opening file\n")); | 118 DEBUG_INFO(("Opening file\n")); |
119 memset(&pstfile, 0, sizeof(pstfile)); | 119 memset(&pstfile, 0, sizeof(pstfile)); |
120 if (pst_open(&pstfile, fname)) { | 120 if (pst_open(&pstfile, fname, NULL)) { |
121 DIE(("Error opening file\n")); | 121 DIE(("Error opening file\n")); |
122 } | 122 } |
123 | 123 |
124 DEBUG_INFO(("Loading Index\n")); | 124 DEBUG_INFO(("Loading Index\n")); |
125 if (pst_load_index(&pstfile) != 0) { | 125 if (pst_load_index(&pstfile) != 0) { |