some inits warnings

This commit is contained in:
Jacek Jendrzej
2017-08-21 14:42:24 +02:00
parent c307ed5b36
commit c99486520e
5 changed files with 9 additions and 8 deletions

View File

@@ -836,7 +836,7 @@ void CRadioText::RassDecode(unsigned char *mtext, int len)
slidenumr = Rass_SlideFoto;
}
//
char *filepath;
char *filepath = asprintf(&filepath, "%s/Rass_%d.error", DataDir, slidenumr);
(filetype == 2) ? asprintf(&filepath, "%s/Rass_%d.def", DataDir, slidenumr)
: asprintf(&filepath, "%s/Rass_%d.mpg", DataDir, slidenumr);
if ((fd = fopen(filepath, "wb")) != NULL) {