diff --git a/src/switch_apr.c b/src/switch_apr.c index 864ccccda3..06c6f62624 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -339,6 +339,7 @@ SWITCH_DECLARE(int) switch_file_printf(switch_file_t *thefile, const char *forma { va_list ap; int ret; + va_start(ap, format); ret = apr_file_printf(thefile, format, ap); va_end(ap); return ret;