[asterisk-commits] russell: trunk r38283 - /trunk/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jul 26 18:29:58 MST 2006


Author: russell
Date: Wed Jul 26 20:29:57 2006
New Revision: 38283

URL: http://svn.digium.com/view/asterisk?rev=38283&view=rev
Log:
fix some breakage of ast_cli() that resulted in seg faults on Josh's machine.
I'm not sure why this never caused problems for me ...

Modified:
    trunk/cli.c

Modified: trunk/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/cli.c?rev=38283&r1=38282&r2=38283&view=diff
==============================================================================
--- trunk/cli.c (original)
+++ trunk/cli.c Wed Jul 26 20:29:57 2006
@@ -88,6 +88,8 @@
 		}
 		buf->len *= 2;
 		pthread_setspecific(ast_cli_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