[svn-commits] branch kpfleming/stringfields - r7768 in /team/kpfleming/stringfields: ./ inc...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Jan 3 22:33:48 CST 2006


Author: kpfleming
Date: Tue Jan  3 22:33:48 2006
New Revision: 7768

URL: http://svn.digium.com/view/asterisk?rev=7768&view=rev
Log:
set up proper initializer for empty fields

Modified:
    team/kpfleming/stringfields/include/asterisk/stringfields.h
    team/kpfleming/stringfields/utils.c

Modified: team/kpfleming/stringfields/include/asterisk/stringfields.h
URL: http://svn.digium.com/view/asterisk/team/kpfleming/stringfields/include/asterisk/stringfields.h?rev=7768&r1=7767&r2=7768&view=diff
==============================================================================
--- team/kpfleming/stringfields/include/asterisk/stringfields.h (original)
+++ team/kpfleming/stringfields/include/asterisk/stringfields.h Tue Jan  3 22:33:48 2006
@@ -33,7 +33,7 @@
 
 typedef const char * ast_string_field;
 
-static const char *__ast_string_field_empty = '\0';
+extern const char *__ast_string_field_empty;
 
 struct ast_string_field_pool {
 	char *base;

Modified: team/kpfleming/stringfields/utils.c
URL: http://svn.digium.com/view/asterisk/team/kpfleming/stringfields/utils.c?rev=7768&r1=7767&r2=7768&view=diff
==============================================================================
--- team/kpfleming/stringfields/utils.c (original)
+++ team/kpfleming/stringfields/utils.c Tue Jan  3 22:33:48 2006
@@ -926,6 +926,8 @@
 	s[ofs] = '\0';
 }
 
+const char const *__ast_string_field_empty = "";
+
 int __ast_string_field_init(struct ast_string_field_pool *pool, size_t size,
 			    ast_string_field *fields, int num_fields)
 {



More information about the svn-commits mailing list