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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 26 12:32:44 MST 2007


Author: murf
Date: Mon Mar 26 14:32:43 2007
New Revision: 59221

URL: http://svn.digium.com/view/asterisk?view=rev&rev=59221
Log:
some minor changes to agree with Qwell's version

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=59221&r1=59220&r2=59221
==============================================================================
--- team/murf/bug9257/main/config.c (original)
+++ team/murf/bug9257/main/config.c Mon Mar 26 14:32:43 2007
@@ -73,14 +73,14 @@
 
 static void CB_INIT(char **comment_buffer, int *comment_buffer_size, char **lline_buffer, int *lline_buffer_size)
 {
-	if (!*comment_buffer) {
+	if (!(*comment_buffer)) {
 		*comment_buffer = ast_malloc(CB_INCR);
-		if (!*comment_buffer)
+		if (!(*comment_buffer))
 			return;
 		(*comment_buffer)[0] = 0;
 		*comment_buffer_size = CB_INCR;
 		*lline_buffer = ast_malloc(CB_INCR);
-		if (!*lline_buffer)
+		if (!(*lline_buffer))
 			return;
 		(*lline_buffer)[0] = 0;
 		*lline_buffer_size = CB_INCR;
@@ -96,7 +96,7 @@
 	int siz = strlen(str);
 	if (rem < siz+1) {
 		*comment_buffer = ast_realloc(*comment_buffer, *comment_buffer_size + CB_INCR + siz + 1);
-		if (!*comment_buffer)
+		if (!(*comment_buffer))
 			return;
 		*comment_buffer_size += CB_INCR+siz+1;
 	}
@@ -109,7 +109,7 @@
 	int rem = *comment_buffer_size - cbl;
 	if (rem < len+1) {
 		*comment_buffer = ast_realloc(*comment_buffer, *comment_buffer_size + CB_INCR + len + 1);
-		if (!*comment_buffer)
+		if (!(*comment_buffer))
 			return;
 		*comment_buffer_size += CB_INCR+len+1;
 	}
@@ -123,7 +123,7 @@
 	int siz = strlen(str);
 	if (rem < siz+1) {
 		*lline_buffer = ast_realloc(*lline_buffer, *lline_buffer_size + CB_INCR + siz + 1);
-		if (!*lline_buffer) 
+		if (!(*lline_buffer)) 
 			return;
 		*lline_buffer_size += CB_INCR + siz + 1;
 	}
@@ -642,7 +642,7 @@
 					(*cat)->ignored = 1;
 				} else if (!strcasecmp(cur, "+")) {
 					*cat = category_get(cfg, catname, 1);
-					if (!*cat) {
+					if (!(*cat)) {
 						ast_config_destroy(cfg);
 						if (newcat)
 							ast_category_destroy(newcat);
@@ -677,7 +677,7 @@
 			*c = '\0';
 			/* Find real argument */
 			c = ast_skip_blanks(c + 1);
-			if (!*c)
+			if (!(*c))
 				c = NULL;
 		} else 
 			c = NULL;
@@ -731,7 +731,7 @@
 			ast_log(LOG_WARNING, "Unknown directive '%s' at line %d of %s\n", cur, lineno, configfile);
 	} else {
 		/* Just a line (variable = value) */
-		if (!*cat) {
+		if (!(*cat)) {
 			ast_log(LOG_WARNING,
 				"parse error: No category context for line %d of %s\n", lineno, configfile);
 			return -1;



More information about the asterisk-commits mailing list