sticker: sticker_load_value() returns NULL on error, not false

Turn the "return false" error handlers into "return NULL".
This commit is contained in:
Max Kellermann 2009-03-14 14:29:54 +01:00
parent 77eaab55a3
commit d70591b652
1 changed files with 4 additions and 4 deletions

View File

@ -154,21 +154,21 @@ sticker_load_value(const char *type, const char *uri, const char *name)
if (ret != SQLITE_OK) {
g_warning("sqlite3_bind_text() failed: %s",
sqlite3_errmsg(sticker_db));
return false;
return NULL;
}
ret = sqlite3_bind_text(sticker_stmt_get, 2, uri, -1, NULL);
if (ret != SQLITE_OK) {
g_warning("sqlite3_bind_text() failed: %s",
sqlite3_errmsg(sticker_db));
return false;
return NULL;
}
ret = sqlite3_bind_text(sticker_stmt_get, 3, name, -1, NULL);
if (ret != SQLITE_OK) {
g_warning("sqlite3_bind_text() failed: %s",
sqlite3_errmsg(sticker_db));
return false;
return NULL;
}
do {
@ -185,7 +185,7 @@ sticker_load_value(const char *type, const char *uri, const char *name)
/* error */
g_warning("sqlite3_step() failed: %s",
sqlite3_errmsg(sticker_db));
return false;
return NULL;
}
sqlite3_reset(sticker_stmt_get);