git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20596
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
}
f1 = translated_frame;
-
} else {
if (f->subclass != queue->format) {
ast_log(LOG_WARNING, "Spy '%s' on channel '%s' wants format '%s', but frame is '%s', dropping\n",
/* duplicate and append f1 to the tail */
f1 = ast_frdup(f1);
- for (last = queue->head; last && last->next; last = last->next);
+ for (last = queue->head; last && last->next; last = last->next)
+ ;
if (last)
last->next = f1;
else