diff options
author | Max Kellermann <max@duempel.org> | 2008-10-31 16:47:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-31 16:47:21 +0100 |
commit | a5f8d4386c3d7b59bab15499d5d70f8d2713626f (patch) | |
tree | 148790958d648b34564a6c4216f3db42614c7d9d /src/playlist_save.c | |
parent | d8e877e3355d0858c78a6d9a7060a6683024dd30 (diff) | |
download | mpd-a5f8d4386c3d7b59bab15499d5d70f8d2713626f.tar.gz mpd-a5f8d4386c3d7b59bab15499d5d70f8d2713626f.tar.xz mpd-a5f8d4386c3d7b59bab15499d5d70f8d2713626f.zip |
update: check return values
Nearly all mapper functions can fail and will then return NULL. Add
checks to all callers.
Diffstat (limited to '')
-rw-r--r-- | src/playlist_save.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/playlist_save.c b/src/playlist_save.c index 9c72e0aef..4ae965154 100644 --- a/src/playlist_save.c +++ b/src/playlist_save.c @@ -52,5 +52,6 @@ playlist_print_uri(FILE *file, const char *uri) else s = utf8_to_fs_charset(tmp, uri); - fprintf(file, "%s\n", s); + if (s != NULL) + fprintf(file, "%s\n", s); } |