summaryrefslogtreecommitdiff
path: root/kike.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-11 14:47:45 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-11 14:48:00 +0200
commit5692da47bef5402d37e131c1d55fbad864bd066d (patch)
treedc004a7daf95190fb2d28d548ec176f78924b91c /kike.c
parentc3d39dab5b0acdcd971e5365fb1967cbf243bcce (diff)
downloadxK-5692da47bef5402d37e131c1d55fbad864bd066d.tar.gz
xK-5692da47bef5402d37e131c1d55fbad864bd066d.tar.xz
xK-5692da47bef5402d37e131c1d55fbad864bd066d.zip
Fix various issues reported by Coverity
Diffstat (limited to 'kike.c')
-rw-r--r--kike.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kike.c b/kike.c
index b4f4434..c48eb3c 100644
--- a/kike.c
+++ b/kike.c
@@ -1818,8 +1818,11 @@ mode_processor_do_list (struct mode_processor *self,
return;
}
+ if (!mode_processor_check_operator (self))
+ return;
+
char *mask = irc_check_expand_user_mask (target);
- if (!mode_processor_check_operator (self) || !mask)
+ if (!mask)
return;
size_t i;