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.
This commit is contained in:
Matthias Drochner 2013-05-27 19:37:35 +02:00 committed by Max Kellermann
parent 7d5d95ad53
commit 2b579aeb4f
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;