From: Jason Parker Date: Fri, 11 May 2007 21:16:39 +0000 (+0000) Subject: oops.. Fix the logic of the last commit. X-Git-Tag: 1.6.0-beta1~3^2~2699 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb30f0c0d23197ca8f583698ae4c7f1f34bd4d75;p=thirdparty%2Fasterisk.git oops.. Fix the logic of the last commit. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64013 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/asterisk.c b/main/asterisk.c index a8dd93d75b..e957360611 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2529,7 +2529,7 @@ static void ast_readconfig(void) 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);