mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 22:28:07 +00:00
valist cannot be reused, even in apple
This commit is contained in:
parent
c6a7471db6
commit
3c54c676af
1 changed files with 2 additions and 2 deletions
|
|
@ -1309,7 +1309,7 @@ void linphone_gtk_log_handler(OrtpLogLevel lev, const char *fmt, va_list args){
|
|||
if (verbose){
|
||||
const char *lname="undef";
|
||||
char *msg;
|
||||
#ifdef __linux
|
||||
#if defined(__linux) || defined(__APPLE__)
|
||||
va_list cap;/*copy of our argument list: a va_list cannot be re-used (SIGSEGV on linux 64 bits)*/
|
||||
#endif
|
||||
switch(lev){
|
||||
|
|
@ -1331,7 +1331,7 @@ void linphone_gtk_log_handler(OrtpLogLevel lev, const char *fmt, va_list args){
|
|||
default:
|
||||
g_error("Bad level !");
|
||||
}
|
||||
#ifdef __linux
|
||||
#if defined(__linux) || defined(__APPLE__)
|
||||
va_copy(cap,args);
|
||||
msg=g_strdup_vprintf(fmt,cap);
|
||||
va_end(cap);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue