diff --git a/playlist.c b/playlist.c index 6a819accdc..97e101940d 100644 --- a/playlist.c +++ b/playlist.c @@ -22,6 +22,7 @@ #include #include #include +#include "retroarch_logger.h" struct content_playlist_entry { @@ -81,7 +82,10 @@ void content_playlist_push(content_playlist_t *playlist, size_t i; if (!playlist) + { + RARCH_ERR("Content playlist not initialized.\n"); return; + } for (i = 0; i < playlist->size; i++) { @@ -126,12 +130,18 @@ static void content_playlist_write_file(content_playlist_t *playlist) FILE *file = NULL; if (!playlist) + { + RARCH_ERR("Content playlist not initialized.\n"); return; + } file = fopen(playlist->conf_path, "w"); if (!file) + { + RARCH_ERR("Playlist output file could not be written to.\n"); return; + } for (i = 0; i < playlist->size; i++) {