1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

Update: Avoid re-assigning source and client pointers

This commit is contained in:
Philipp Schafft 2022-09-16 18:44:42 +00:00
parent c9f2a6a65c
commit 0df67e7971

View File

@ -473,10 +473,9 @@ void event_emit_va(const char *trigger, ...) {
if (key == EVENT_EXTRA_LIST_END) {
break;
} else if (key == EVENT_EXTRA_SOURCE) {
source = va_arg(ap, source_t *);
} else if (key == EVENT_EXTRA_CLIENT) {
client = va_arg(ap, client_t *);
} else if (key == EVENT_EXTRA_SOURCE || key == EVENT_EXTRA_CLIENT) {
/* shift one arg off */
va_arg(ap, const void *);
} else {
const char *value = va_arg(ap, const char *);