Fix build for ISO C 90.

This commit is contained in:
Tim Van den Langenbergh 2019-07-28 13:42:07 +02:00
parent 6d5960c166
commit c69c3f4c47

View File

@ -1225,6 +1225,7 @@ void playlist_write_file(playlist_t *playlist)
JSONContext context = {0};
context.writer = JSON_Writer_Create(NULL);
context.file = file;
char label_display_mode[4];
if (!context.writer)
{
@ -1281,7 +1282,6 @@ void playlist_write_file(playlist_t *playlist)
JSON_Writer_WriteComma(context.writer);
JSON_Writer_WriteNewLine(context.writer);
char label_display_mode[4];
snprintf(label_display_mode, sizeof(label_display_mode), "%u", playlist->label_display_mode);
JSON_Writer_WriteSpace(context.writer, 2);