[svn-commits] qwell: trunk r64013 - /trunk/main/asterisk.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri May 11 14:16:40 MST 2007


Author: qwell
Date: Fri May 11 16:16:39 2007
New Revision: 64013

URL: http://svn.digium.com/view/asterisk?view=rev&rev=64013
Log:
oops..  Fix the logic of the last commit.

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/main/asterisk.c?view=diff&rev=64013&r1=64012&r2=64013
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Fri May 11 16:16:39 2007
@@ -2529,7 +2529,7 @@
 				if (!gethostname(hostname, sizeof(hostname) - 1))
 					ast_copy_string(ast_config_AST_SYSTEM_NAME, hostname, sizeof(ast_config_AST_SYSTEM_NAME));
 				else {
-					if (!ast_strlen_zero(ast_config_AST_SYSTEM_NAME)){
+					if (ast_strlen_zero(ast_config_AST_SYSTEM_NAME)){
 						ast_copy_string(ast_config_AST_SYSTEM_NAME, "localhost", sizeof(ast_config_AST_SYSTEM_NAME));
 					}
 					ast_log(LOG_ERROR, "Cannot obtain hostname for this system.  Using '%s' instead.\n", ast_config_AST_SYSTEM_NAME);



More information about the svn-commits mailing list