[asterisk-commits] murf: branch murf/bug9257 r58865 - /team/murf/bug9257/main/config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 13 14:15:27 MST 2007


Author: murf
Date: Tue Mar 13 16:15:27 2007
New Revision: 58865

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58865
Log:
Fixed some missing asterisks (not the program, the char!).

Modified:
    team/murf/bug9257/main/config.c

Modified: team/murf/bug9257/main/config.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug9257/main/config.c?view=diff&rev=58865&r1=58864&r2=58865
==============================================================================
--- team/murf/bug9257/main/config.c (original)
+++ team/murf/bug9257/main/config.c Tue Mar 13 16:15:27 2007
@@ -95,7 +95,7 @@
 	int rem = *comment_buffer_size - strlen(*comment_buffer) - 1;
 	int siz = strlen(str);
 	if (rem < siz+1) {
-		comment_buffer = ast_realloc(*comment_buffer, *comment_buffer_size + CB_INCR + siz + 1);
+		*comment_buffer = ast_realloc(*comment_buffer, *comment_buffer_size + CB_INCR + siz + 1);
 		if (!*comment_buffer)
 			return;
 		*comment_buffer_size += CB_INCR+siz+1;
@@ -753,10 +753,10 @@
 				v->blanklines = 0;
 				ast_variable_append(*cat, v);
 				/* add comments */
-				if (withcomments && comment_buffer && comment_buffer[0] ) {
+				if (withcomments && *comment_buffer && (*comment_buffer)[0] ) {
 					v->precomments = ALLOC_COMMENT(*comment_buffer);
 				}
-				if (withcomments && lline_buffer && lline_buffer[0] ) {
+				if (withcomments && *lline_buffer && (*lline_buffer)[0] ) {
 					v->sameline = ALLOC_COMMENT(*lline_buffer);
 				}
 				if ( withcomments )



More information about the asterisk-commits mailing list