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)
g_set_error(error_r, config_quark(), 0,
"line %i: Unknown tokens after '}'",
*count);
return false;
return NULL;
}
return ret;
......
......@@ -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;
......
......@@ -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;
......
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