Merge pull request #634 from StAlphonsos/attila-bugfix-c_str-redux

Fix call to c_str() that sometimes dumps core on OpenBSD i386-current
This commit is contained in:
Dirk-Jan C. Binnema 2015-07-04 12:15:36 +03:00
commit 2b5c0da669
1 changed files with 1 additions and 3 deletions

View File

@ -366,9 +366,7 @@ mu_msg_iter_get_msgid (MuMsgIter *iter)
g_return_val_if_fail (!mu_msg_iter_is_done(iter), NULL);
try {
const char *msgid (iter->msgid().c_str());
return msgid ? g_strdup (msgid) : NULL;
return g_strdup (iter->msgid().c_str());
} MU_XAPIAN_CATCH_BLOCK_RETURN (NULL);
}