Commit 8d2f07b0 authored by Rafaël Carré's avatar Rafaël Carré

logger: don't use NULL FILE* on android

parent 091552e8
...@@ -193,6 +193,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -193,6 +193,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys == NULL ) if( p_sys == NULL )
return VLC_ENOMEM; return VLC_ENOMEM;
p_sys->p_file = NULL;
msg_callback_t cb = TextPrint; msg_callback_t cb = TextPrint;
const char *filename = LOG_FILE_TEXT, *header = TEXT_HEADER; const char *filename = LOG_FILE_TEXT, *header = TEXT_HEADER;
p_sys->footer = TEXT_FOOTER; p_sys->footer = TEXT_FOOTER;
...@@ -318,6 +319,7 @@ static void Close( vlc_object_t *p_this ) ...@@ -318,6 +319,7 @@ static void Close( vlc_object_t *p_this )
closelog(); closelog();
else else
#endif #endif
if( p_sys->p_file )
{ {
fputs( p_sys->footer, p_sys->p_file ); fputs( p_sys->footer, p_sys->p_file );
fclose( 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