don't wrap this in ifdef... using va_start is safe on all platforms :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
fb8ff8ed57
commit
2b408e88a9
4
utils.c
4
utils.c
|
@ -1024,11 +1024,7 @@ void __ast_string_field_index_build(struct ast_string_field_mgr *mgr,
|
|||
va_list ap1, ap2;
|
||||
|
||||
va_start(ap1, format);
|
||||
#if defined(__FreeBSD__)
|
||||
va_start(ap2, format); /* va_copy does not exist on FreeBSD */
|
||||
#else
|
||||
va_copy(ap2, ap1);
|
||||
#endif
|
||||
|
||||
needed = vsnprintf(mgr->pool->base + mgr->used, mgr->space, format, ap1) + 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue