Commit 13eeebc9 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

fix build error

parent 8a1f1816
......@@ -204,7 +204,7 @@ zathura_db_set_fileinfo(zathura_database_t* db, const char* file, unsigned int p
bool
zathura_db_get_fileinfo(zathura_database_t* db, const char* file, unsigned int* page, int* offset, float* scale)
{
g_return_val_if_fail(db && file && page && ofset && scale, false);
g_return_val_if_fail(db && file && page && offset && scale, false);
static const char SQL_FILEINFO_GET[] =
"SELECT page, offset, scale FROM fileinfo WHERE file = ?;";
......@@ -214,7 +214,7 @@ zathura_db_get_fileinfo(zathura_database_t* db, const char* file, unsigned int*
return false;
}
if (sqlite3_bind_text(stmt, 1, file, -1, NULL) != SQLITE_OK)
if (sqlite3_bind_text(stmt, 1, file, -1, NULL) != SQLITE_OK) {
sqlite3_finalize(stmt);
girara_error("Failed to bind arguments.");
return false;
......
Supports Markdown
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