From: Holger Schemel Date: Tue, 14 Jun 2016 11:15:24 +0000 (+0200) Subject: small fix to prevent compiler warning X-Git-Tag: 4.0.0.0-rc3~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=eb51a78900b95e3f7c9c3fbc9e4cf9360b374188;p=rocksndiamonds.git small fix to prevent compiler warning --- diff --git a/src/network.c b/src/network.c index 29462401..56d6bc66 100644 --- a/src/network.c +++ b/src/network.c @@ -98,7 +98,7 @@ char *getNetworkPlayerName(int player_nr) return("you"); else for (player = &first_player; player; player = player->next) - if (player->nr == player_nr && player->name && strlen(player->name)) + if (player->nr == player_nr && strlen(player->name) > 0) return(player->name); return(EMPTY_PLAYER_NAME);