[svn-commits] rizzo: trunk r44617 - /trunk/main/manager.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Oct 6 13:34:12 MST 2006


Author: rizzo
Date: Fri Oct  6 15:34:11 2006
New Revision: 44617

URL: http://svn.digium.com/view/asterisk?rev=44617&view=rev
Log:
s cannot be null here, so remove the useless test and error-handling block.


Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?rev=44617&r1=44616&r2=44617&view=diff
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Fri Oct  6 15:34:11 2006
@@ -2438,7 +2438,7 @@
 	ast_mutex_unlock(&s->__lock);
 	
 	memset(&m, 0, sizeof(m));
-	if (s) {
+	{
 		char tmp[80];
 		ast_build_string(&c, &len, "Content-type: text/%s\r\n", contenttype[format]);
 		sprintf(tmp, "%08lx", s->managerid);
@@ -2496,9 +2496,6 @@
 			ast_build_string(&c, &len, "</ajax-response>\n");
 		} else if (format == FORMAT_HTML)
 			ast_build_string(&c, &len, "</table></body>\r\n");
-	} else {
-		*status = 500;
-		*title = strdup("Server Error");
 	}
 	ast_mutex_lock(&s->__lock);
 	if (s->needdestroy) {



More information about the svn-commits mailing list