remove my stupid init

Origin commit data
------------------
Commit: c5dc1b7770
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-08-29 (Tue, 29 Aug 2017)
This commit is contained in:
Jacek Jendrzej
2017-08-29 15:01:31 +02:00
parent d8caaaf758
commit 651099e559

View File

@@ -836,7 +836,7 @@ void CRadioText::RassDecode(unsigned char *mtext, int len)
slidenumr = Rass_SlideFoto;
}
//
char *filepath = asprintf(&filepath, "%s/Rass_%d.error", DataDir, slidenumr);
char *filepath = NULL;
(filetype == 2) ? asprintf(&filepath, "%s/Rass_%d.def", DataDir, slidenumr)
: asprintf(&filepath, "%s/Rass_%d.mpg", DataDir, slidenumr);
if ((fd = fopen(filepath, "wb")) != NULL) {
@@ -881,7 +881,8 @@ void CRadioText::RassDecode(unsigned char *mtext, int len)
}
else
printf("ERROR vdr-radio: writing image/data-file failed '%s'", filepath);
free(filepath);
if(filepath)
free(filepath);
}
}
start = false;