Commit 2855320a authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

logger: don't use NULL FILE* on android

(cherry picked from commit 8d2f07b0b9716aac58d0c294371cb8147589ba19)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ec5d9cb0
......@@ -201,6 +201,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys == NULL )
return VLC_ENOMEM;
p_sys->p_file = NULL;
msg_callback_t cb = TextPrint;
const char *filename = LOG_FILE_TEXT, *header = TEXT_HEADER;
p_sys->footer = TEXT_FOOTER;
......@@ -326,6 +327,7 @@ static void Close( vlc_object_t *p_this )
closelog();
else
#endif
if( p_sys->p_file )
{
fputs( p_sys->footer, p_sys->p_file );
fclose( p_sys->p_file );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment