Rework getting database version (#469)

It seems we don't get the correct database version in some case with
some compilers, optimization flags. Suspecting some stale ->c_str().
This commit is contained in:
djcb
2014-09-23 07:32:39 +03:00
parent 7888ba38f0
commit 3c7061338d
3 changed files with 17 additions and 17 deletions

View File

@ -113,7 +113,8 @@ const char*
mu_store_version (const MuStore *store)
{
g_return_val_if_fail (store, NULL);
return store->version().c_str();
return store->version();
}