[asterisk-commits] file: branch anthonyl/8678-commentbuffer r49550 - /team/anthonyl/8678-comment...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jan 4 15:18:20 MST 2007


Author: file
Date: Thu Jan  4 16:18:20 2007
New Revision: 49550

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49550
Log:
Few minor formatting changes.

Modified:
    team/anthonyl/8678-commentbuffer/main/config.c

Modified: team/anthonyl/8678-commentbuffer/main/config.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/8678-commentbuffer/main/config.c?view=diff&rev=49550&r1=49549&r2=49550
==============================================================================
--- team/anthonyl/8678-commentbuffer/main/config.c (original)
+++ team/anthonyl/8678-commentbuffer/main/config.c Thu Jan  4 16:18:20 2007
@@ -945,17 +945,13 @@
 		}
 #endif
 
-	if (cfg->include_level == 1) {
-		if (withcomments) {
-			if (comment_buffer) { 
-				free(comment_buffer);
-				free(lline_buffer);
-				comment_buffer=0; 
-				lline_buffer=0; 
-				comment_buffer_size=0; 
-				lline_buffer_size=0;
-			}
-		}
+	if (cfg->include_level == 1 && withcomments && comment_buffer) {
+		free(comment_buffer);
+		free(lline_buffer);
+		comment_buffer = NULL;
+		lline_buffer = NULL;
+		comment_buffer_size = 0;
+		lline_buffer_size = 0;
 	}
 	
 	if (count == 0)



More information about the asterisk-commits mailing list