mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
don't log string before it's initialized
This commit is contained in:
parent
a8f49ad94b
commit
dd48cea912
1 changed files with 1 additions and 2 deletions
|
@ -1727,13 +1727,12 @@ chatsTimerFired( gpointer data )
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
struct timezone tz;
|
||||||
|
|
||||||
XP_LOGF( "%s: sending \"%s\"", __func__, msg );
|
|
||||||
|
|
||||||
gettimeofday( &tv, &tz );
|
gettimeofday( &tv, &tz );
|
||||||
timp = localtime( &tv.tv_sec );
|
timp = localtime( &tv.tv_sec );
|
||||||
|
|
||||||
snprintf( msg, sizeof(msg), "Saying hi via chat at %.2d:%.2d:%.2d",
|
snprintf( msg, sizeof(msg), "Saying hi via chat at %.2d:%.2d:%.2d",
|
||||||
timp->tm_hour, timp->tm_min, timp->tm_sec );
|
timp->tm_hour, timp->tm_min, timp->tm_sec );
|
||||||
|
XP_LOGF( "%s: sending \"%s\"", __func__, msg );
|
||||||
server_sendChat( globals->cGlobals.game.server, msg );
|
server_sendChat( globals->cGlobals.game.server, msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue