Commit 2b579aeb authored by Matthias Drochner's avatar Matthias Drochner Committed by Max Kellermann

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.
parent 7d5d95ad
...@@ -317,7 +317,7 @@ config_read_block(FILE *fp, int *count, char *string, GError **error_r) ...@@ -317,7 +317,7 @@ config_read_block(FILE *fp, int *count, char *string, GError **error_r)
g_set_error(error_r, config_quark(), 0, g_set_error(error_r, config_quark(), 0,
"line %i: Unknown tokens after '}'", "line %i: Unknown tokens after '}'",
*count); *count);
return false; return NULL;
} }
return ret; return ret;
......
...@@ -187,7 +187,7 @@ song_file_update_inarchive(struct song *song) ...@@ -187,7 +187,7 @@ song_file_update_inarchive(struct song *song)
if (suffix == NULL) if (suffix == NULL)
return false; return false;
plugin = decoder_plugin_from_suffix(suffix, false); plugin = decoder_plugin_from_suffix(suffix, NULL);
if (plugin == NULL) if (plugin == NULL)
return false; return false;
......
...@@ -104,7 +104,7 @@ update_song_file(struct directory *directory, ...@@ -104,7 +104,7 @@ update_song_file(struct directory *directory,
const struct stat *st) const struct stat *st)
{ {
const struct decoder_plugin *plugin = const struct decoder_plugin *plugin =
decoder_plugin_from_suffix(suffix, false); decoder_plugin_from_suffix(suffix, NULL);
if (plugin == NULL) if (plugin == NULL)
return false; return false;
......
Markdown is supported
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