[asterisk-commits] russell: branch russell/ast_verbose_threadstorage r38284 - /team/russell/ast_...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jul 26 18:36:04 MST 2006


Author: russell
Date: Wed Jul 26 20:36:04 2006
New Revision: 38284

URL: http://svn.digium.com/view/asterisk?rev=38284&view=rev
Log:
fix the same problem i introduced in ast_cli

Modified:
    team/russell/ast_verbose_threadstorage/logger.c

Modified: team/russell/ast_verbose_threadstorage/logger.c
URL: http://svn.digium.com/view/asterisk/team/russell/ast_verbose_threadstorage/logger.c?rev=38284&r1=38283&r2=38284&view=diff
==============================================================================
--- team/russell/ast_verbose_threadstorage/logger.c (original)
+++ team/russell/ast_verbose_threadstorage/logger.c Wed Jul 26 20:36:04 2006
@@ -860,6 +860,8 @@
 		}
 		buf->len *= 2;
 		pthread_setspecific(verbose_buf_key, buf);
+		va_end(ap);
+		va_start(ap, fmt);
 		res = vsnprintf(buf->str, buf->len, fmt, ap);
 	}
 	va_end(ap);



More information about the asterisk-commits mailing list