[asterisk-commits] mvanbaak: trunk r158723 - /trunk/funcs/func_realtime.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Nov 22 11:17:33 CST 2008


Author: mvanbaak
Date: Sat Nov 22 11:17:33 2008
New Revision: 158723

URL: http://svn.digium.com/view/asterisk?view=rev&rev=158723
Log:
last commit worked on OpenBSD but still generated warning on Ubuntu.

Initialise a variable so --enable-dev-mode does not complain

Modified:
    trunk/funcs/func_realtime.c

Modified: trunk/funcs/func_realtime.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_realtime.c?view=diff&rev=158723&r1=158722&r2=158723
==============================================================================
--- trunk/funcs/func_realtime.c (original)
+++ trunk/funcs/func_realtime.c Sat Nov 22 11:17:33 2008
@@ -252,7 +252,7 @@
 	struct ast_str *escapebuf = ast_str_thread_get(&buf1, 16);
 	struct ast_str *fields = ast_str_thread_get(&buf2, 16);
 	struct ast_str *values = ast_str_thread_get(&buf3, 16);
-	int first = NULL;
+	int first = 0;
 	enum { rtfield, rthash } which;
 	AST_DECLARE_APP_ARGS(args,
 		AST_APP_ARG(family);




More information about the asterisk-commits mailing list