Simplify condition in set_current_channel_by_refnum()

This commit is contained in:
Kevin Easton
2017-11-09 23:35:28 +11:00
parent f81126186c
commit c881d1d20f

View File

@@ -1591,7 +1591,7 @@ const char *BX_set_current_channel_by_refnum(unsigned int refnum, char *channel)
tmp = current_window;
oldc = tmp->current_channel;
if (!channel || (channel && !strcmp(channel, zero)))
if (!channel || !strcmp(channel, zero))
tmp->current_channel = NULL;
else
tmp->current_channel = m_strdup(channel);