OSDN Git Service

配列に対して行っている不要なNULLチェックを削除
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 16 Nov 2012 16:11:56 +0000 (16:11 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 16 Nov 2012 16:11:56 +0000 (16:11 +0000)
src/util.c

index f2a756f..0c7d46a 100644 (file)
@@ -2455,7 +2455,7 @@ void message_add(cptr str)
                }
 
                /* Limit the multiplier to 1000 */
-               if (buf && streq(buf, str) && (j < 1000))
+               if (streq(buf, str) && (j < 1000))
                {
                        j++;