Commit fef83e25 authored by Gildas Bazin's avatar Gildas Bazin

* modules/access_filter/record.c: compilation fix.

parent acd2a608
...@@ -326,16 +326,13 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer ) ...@@ -326,16 +326,13 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
struct tm l; struct tm l;
#ifdef HAVE_LOCALTIME_R #ifdef HAVE_LOCALTIME_R
if( !localtime_r( &t, &l ) ) if( !localtime_r( &t, &l ) ) memset( &l, 0, sizeof(l) );
memset( &l, 0, sizeof(l) );
#else #else
/* Grrr */ /* Grrr */
{ {
struct tm *p_l = localtime( &t ); struct tm *p_l = localtime( &t );
if( p_l ) if( p_l ) l = *p_l;
l = *p_l; else memset( &l, 0, sizeof(l) );
else
memset( &l, 0, sizeof(l) );
} }
#endif #endif
......
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