diff --git a/src/act.informative.c b/src/act.informative.c index 970d3d8..3499a25 100644 --- a/src/act.informative.c +++ b/src/act.informative.c @@ -1481,7 +1481,7 @@ ACMD(do_users) "UNDEFINED", state, idletime, timestr); - if (d->host && *d->host) + if (*d->host) sprintf(line + strlen(line), "[%s]\r\n", d->host); else strcat(line, "[Hostname unknown]\r\n"); diff --git a/src/act.wizard.c b/src/act.wizard.c index 5c36755..470699c 100644 --- a/src/act.wizard.c +++ b/src/act.wizard.c @@ -4983,7 +4983,7 @@ ACMD(do_recent) ct = this->time; strftime(timestr, sizeof(timestr), "%a %b %d %H:%M:%S %Y", localtime(&ct)); - if (this->host && *(this->host)) { + if (*(this->host)) { if (!strcmp(this->host, "localhost")) loc = TRUE; } diff --git a/src/players.c b/src/players.c index fc9d8b3..fd3f278 100644 --- a/src/players.c +++ b/src/players.c @@ -514,7 +514,7 @@ void save_char(struct char_data * ch) /* If ch->desc is not null, then update session data before saving. */ if (ch->desc) { - if (ch->desc->host && *ch->desc->host) { + if (*ch->desc->host) { if (!GET_HOST(ch)) GET_HOST(ch) = strdup(ch->desc->host); else if (GET_HOST(ch) && strcmp(GET_HOST(ch), ch->desc->host)) { diff --git a/src/util/plrtoascii.c b/src/util/plrtoascii.c index 87a354f..8e6013c 100755 --- a/src/util/plrtoascii.c +++ b/src/util/plrtoascii.c @@ -196,13 +196,10 @@ void convert(char *filename) } /* char_file_u */ - if (player.name) - fprintf(outfile, "Name: %s\n", player.name); - if (player.pwd) - fprintf(outfile, "Pass: %s\n", player.pwd); - if (player.title) - fprintf(outfile, "Titl: %s\n", player.title); - if (player.description && *player.description) + fprintf(outfile, "Name: %s\n", player.name); + fprintf(outfile, "Pass: %s\n", player.pwd); + fprintf(outfile, "Titl: %s\n", player.title); + if (*player.description) fprintf(outfile, "Desc:\n%s~\n", player.description); if (player.sex != PFDEF_SEX) fprintf(outfile, "Sex : %d\n", (int)player.sex);