aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-11 21:16:39 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-11 21:16:39 +0000
commit741823f627df11c1fa7701e7b68fb05f7769c6c5 (patch)
treee4541015efcc771f7f00db6659448ebcac028c9e /main
parent7f8338a27b1bf0c62927bea1876ae52e1a89a673 (diff)
oops.. Fix the logic of the last commit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@64013 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/asterisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index a8dd93d75..e95736061 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);