Addressed compiler warnings:

address of array '...' will always evaluate to 'true' [-Wpointer-bool-conversion]
This commit is contained in:
wyld-sw
2016-02-12 11:24:44 -05:00
parent d6a58122b2
commit 8d5b184cc7
4 changed files with 7 additions and 10 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)) {