aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Drochner <M.Drochner@fz-juelich.de>2013-05-27 19:37:35 +0200
committerMax Kellermann <max@duempel.org>2013-06-24 16:00:58 +0200
commit2b579aeb4f6177de619eb02129f780675a5482ff (patch)
treec3b0941cc1033e097a3e734093a797eb9879ef97
parent7d5d95ad53d15df0b42cef9a5230e46b8de40a22 (diff)
downloadmpd-2b579aeb4f6177de619eb02129f780675a5482ff.tar.gz
mpd-2b579aeb4f6177de619eb02129f780675a5482ff.tar.xz
mpd-2b579aeb4f6177de619eb02129f780675a5482ff.zip
NULL pointer vs bool "false" confusion
there are some places in the mpd-0.17.4 sources where a "false" is used instead of a NULL pointer.
-rw-r--r--src/conf.c2
-rw-r--r--src/song_update.c2
-rw-r--r--src/update_song.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/conf.c b/src/conf.c
index 167f2da92..a22f2ec91 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -317,7 +317,7 @@ config_read_block(FILE *fp, int *count, char *string, GError **error_r)
g_set_error(error_r, config_quark(), 0,
"line %i: Unknown tokens after '}'",
*count);
- return false;
+ return NULL;
}
return ret;
diff --git a/src/song_update.c b/src/song_update.c
index 37f502a20..f9d6b6f46 100644
--- a/src/song_update.c
+++ b/src/song_update.c
@@ -187,7 +187,7 @@ song_file_update_inarchive(struct song *song)
if (suffix == NULL)
return false;
- plugin = decoder_plugin_from_suffix(suffix, false);
+ plugin = decoder_plugin_from_suffix(suffix, NULL);
if (plugin == NULL)
return false;
diff --git a/src/update_song.c b/src/update_song.c
index 1126ad115..f5930d688 100644
--- a/src/update_song.c
+++ b/src/update_song.c
@@ -104,7 +104,7 @@ update_song_file(struct directory *directory,
const struct stat *st)
{
const struct decoder_plugin *plugin =
- decoder_plugin_from_suffix(suffix, false);
+ decoder_plugin_from_suffix(suffix, NULL);
if (plugin == NULL)
return false;