Simplify condition in set_current_channel_by_refnum()
This commit is contained in:
@@ -1591,7 +1591,7 @@ const char *BX_set_current_channel_by_refnum(unsigned int refnum, char *channel)
|
|||||||
tmp = current_window;
|
tmp = current_window;
|
||||||
|
|
||||||
oldc = tmp->current_channel;
|
oldc = tmp->current_channel;
|
||||||
if (!channel || (channel && !strcmp(channel, zero)))
|
if (!channel || !strcmp(channel, zero))
|
||||||
tmp->current_channel = NULL;
|
tmp->current_channel = NULL;
|
||||||
else
|
else
|
||||||
tmp->current_channel = m_strdup(channel);
|
tmp->current_channel = m_strdup(channel);
|
||||||
|
|||||||
Reference in New Issue
Block a user