Fix a typo

This commit is contained in:
Sebastian Ramacher 2011-10-03 17:28:14 +02:00
parent 577d485747
commit 02e0c8b2d3
2 changed files with 5 additions and 2 deletions

View file

@ -81,8 +81,11 @@ zathura_bookmark_free(zathura_bookmark_t* bookmark)
bool
zathura_bookmarks_load(zathura_t* zathura, const gchar* file) {
g_return_val_if_fail(zathura && zathura->database, false);
g_return_val_if_fail(zathura, false);
g_return_val_if_fail(file, false);
if (zathura->database == NULL) {
return false;
}
girara_list_t* bookmarks = zathura_db_load_bookmarks(zathura->database, file);
if (!bookmarks) {

View file

@ -204,7 +204,7 @@ zathura_init(int argc, char* argv[])
char* database_path = g_build_filename(zathura->config.data_dir, "bookmarks.sqlite", NULL);
zathura->database = zathura_db_init(database_path);
if (zathura->database == NULL) {
girara_error("Unable to inizialize database. Bookmarks won't be available.");
girara_error("Unable to initialize database. Bookmarks won't be available.");
}
g_free(database_path);