Commit 1a1c5e17 authored by François Grisez's avatar François Grisez

Fix crash

parent ebd03758
......@@ -76,7 +76,7 @@ string belcard_read_file(const string &filename) {
if (!istr || !istr.is_open() || istr.fail()) {
bctbx_error("[belcard] Couldn't open file %s", fName);
return NULL;
return string();
}
string vcard;
......@@ -86,4 +86,4 @@ string belcard_read_file(const string &filename) {
istr.read(&vcard[0], vcard.size());
istr.close();
return vcard;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment