[Asterisk-cvs] asterisk/channels chan_features.c,1.8,1.9

russell at lists.digium.com russell at lists.digium.com
Sat May 7 15:43:08 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6863/channels

Modified Files:
	chan_features.c 
Log Message:
remove unreachable block of code (bug #4207)


Index: chan_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_features.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- chan_features.c	21 Apr 2005 06:30:23 -0000	1.8
+++ chan_features.c	7 May 2005 19:49:32 -0000	1.9
@@ -449,9 +449,10 @@
 		return NULL;
 	}
 	tmp = ast_channel_alloc(0);
-	if (!tmp)
+	if (!tmp) {
+		ast_log(LOG_WARNING, "Unable to allocate channel structure\n");
 		return NULL;
-	if (tmp) {
+	}
 		tmp->tech = &features_tech;
 		for (x=1;x<4;x++) {
 			snprintf(tmp->name, sizeof(tmp->name), "Feature/%s/%s-%d", p->tech, p->dest, x);
@@ -479,8 +480,6 @@
 		usecnt++;
 		ast_mutex_unlock(&usecnt_lock);
 		ast_update_use_count();
-	} else
-		ast_log(LOG_WARNING, "Unable to allocate channel structure\n");
 	return tmp;
 }
 




More information about the svn-commits mailing list