From 9e62c33d9ee58d7dcf1c667a77b3fdd814bc0943 Mon Sep 17 00:00:00 2001 From: Lance Date: Mon, 29 May 2006 09:53:45 +0000 Subject: [Optimized] - Removed unused checks for unsigned data type and possible logic error for char type (gcc treats char as unsigned). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6814 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/showmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/showmsg.c') diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 7d940b189..03dcb7e8a 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -52,7 +52,7 @@ int _vShowMessage(enum msg_type flag, const char *string, va_list ap) return 1; } - if (timestamp_format) + if (strlen(timestamp_format) > 0) { //Display time format. [Skotlex] time_t t = time(NULL); strftime(prefix, 80, timestamp_format, localtime(&t)); -- cgit v1.2.3-70-g09d2