1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

_mucwin_print_mention(): No need to assign pos

This commit is contained in:
Michael Vetter 2020-04-20 16:02:19 +02:00
parent b2ec6ba4ce
commit 70683c07ab

View File

@ -393,7 +393,7 @@ static void
_mucwin_print_mention(ProfWin *window, const char *const message, const char *const from, const char *const mynick, GSList *mentions, const char *const ch, int flags) _mucwin_print_mention(ProfWin *window, const char *const message, const char *const from, const char *const mynick, GSList *mentions, const char *const ch, int flags)
{ {
int last_pos = 0; int last_pos = 0;
int pos = 0; int pos;
GSList *curr = mentions; GSList *curr = mentions;
while (curr) { while (curr) {
pos = GPOINTER_TO_INT(curr->data); pos = GPOINTER_TO_INT(curr->data);