aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-14 14:29:54 +0100
committerMax Kellermann <max@duempel.org>2009-03-14 14:29:54 +0100
commitd70591b652f793637646c0166a05c691693721fd (patch)
tree7721819db293b36fcf4579883c28a5e00bbfd1d4
parent77eaab55a349f223a5a7cf0e816dca754023c635 (diff)
downloadmpd-d70591b652f793637646c0166a05c691693721fd.tar.gz
mpd-d70591b652f793637646c0166a05c691693721fd.tar.xz
mpd-d70591b652f793637646c0166a05c691693721fd.zip
sticker: sticker_load_value() returns NULL on error, not false
Turn the "return false" error handlers into "return NULL".
-rw-r--r--src/sticker.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sticker.c b/src/sticker.c
index 95d3299db..edfb799b6 100644
--- a/src/sticker.c
+++ b/src/sticker.c
@@ -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);