Codebase list atheme-services / 9b6f03f
nickserv/multimark: fix assertion failure The code behaved fine anyway because the assertion failure could only happen in cases where the returned pointer from multimark_list was unused. [msg(nickserv)] mark testacct01 list -!- WALLOP svs.: (multimark.c:192 multimark_list): warning: assertion 'mu != ((void *)0)' failed. -NickServ(-@.)- testacct01 is not registered anymore but was marked by ilbelkyr on Jul 29 01:49:37 2016 +0000: foo Janik Kleinhoff 7 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
878878 return;
879879 }
880880
881 l = multimark_list(mu);
882
883881 if (!strcasecmp(action, "ADD"))
884882 {
885883 if (!info)
888886 command_fail(si, fault_needmoreparams, _("Usage: MARK <target> ADD <note>"));
889887 return;
890888 }
889
890 l = multimark_list(mu);
891891
892892 mm = smalloc(sizeof(multimark_t));
893893 mm->setter_uid = sstrdup(entity(si->smu)->id);
960960 }
961961
962962 command_success_nodata(si, _("\2%s\2's marks:"), target);
963
964 l = multimark_list(mu);
963965
964966 MOWGLI_ITER_FOREACH(n, l->head)
965967 {
10821084 bool found = false;
10831085 int num = atoi(info);
10841086
1087 l = multimark_list(mu);
1088
10851089 MOWGLI_ITER_FOREACH(n, l->head)
10861090 {
10871091 mm = n->data;