forked from kyonshi/grenzland-mud
Addressed compiler warnings:
address of array '...' will always evaluate to 'true' [-Wpointer-bool-conversion]
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user