]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Parentheses around assignment used as truth value, introduced in r290937.
authorErin Spiceland <erin@thespicelands.com>
Fri, 8 Oct 2010 15:49:16 +0000 (15:49 +0000)
committerErin Spiceland <erin@thespicelands.com>
Fri, 8 Oct 2010 15:49:16 +0000 (15:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290938 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/res_config_mysql.c

index d952a45ab57e01a61e41ea3417fc51a39019ebd9..a626ffd3eeea417d001d1df3a58ffff95d125603 100644 (file)
@@ -1528,7 +1528,7 @@ static int load_mysql_config(struct ast_config *config, const char *category, st
        } else
                ast_copy_string(conn->sock, s, sizeof(conn->sock));
 
-       if (s = ast_variable_retrieve(config, category, "dbcharset")) {
+       if ((s = ast_variable_retrieve(config, category, "dbcharset"))) {
                ast_copy_string(conn->charset, s, sizeof(conn->charset));
        }