Addressed warnings from -Wall.

This commit is contained in:
wyld-sw
2017-01-20 15:13:37 -05:00
parent 5119361f15
commit cacd2c2dd2
8 changed files with 9 additions and 8 deletions

View File

@@ -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)) {