Simplify condition in set_current_channel_by_refnum()

This commit is contained in:
Kevin Easton committed 2017-11-09 23:35:28 +11:00
1 parent f81126186c
commit c881d1d20f
1 file changed
+1 -1
+1 -1
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);