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:
parent
7d5d95ad53
commit
2b579aeb4f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user