mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 02:32:27 -05:00
Fix some possible null-deref warnings
This commit is contained in:
parent
c5016e390f
commit
112632bb4e
@ -220,7 +220,7 @@ find_channel (server *serv, char *chan)
|
||||
while (list)
|
||||
{
|
||||
sess = list->data;
|
||||
if ((!serv || serv == sess->server) && sess->type == SESS_CHANNEL)
|
||||
if ((serv == sess->server) && sess->type == SESS_CHANNEL)
|
||||
{
|
||||
if (!serv->p_cmp (chan, sess->channel))
|
||||
return sess;
|
||||
|
@ -1311,7 +1311,7 @@ cmd_menu (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
if (markup)
|
||||
{
|
||||
char *p; /* to force pango closing tags through */
|
||||
for (p = label; *p; p++)
|
||||
for (p = label; p && *p; p++)
|
||||
if (*p == 3)
|
||||
*p = '/';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user