home · contact · privacy
Client: Remove superfluous line of code.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 20 Nov 2014 22:24:20 +0000 (23:24 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 20 Nov 2014 22:24:20 +0000 (23:24 +0100)
src/client/io.c

index 45008155098ac03150c1ad53bf6a9ea8f503866c..6b55de932d5e179931405d1b57f77f656a569b70 100644 (file)
@@ -237,8 +237,7 @@ static uint8_t read_queue()
     while (NULL != (msg = get_message_from_queue(&world.queue)))
     {
         char * log_prefix = "LOG ";
-        char * new_world = "NEW_WORLD";
-        if (!strcmp(msg, new_world))
+        if (!strcmp(msg, "NEW_WORLD"))
         {
             ret = 1;
             free(world.log);