]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
cleanup: fix warning due to lack of parenthesis
authorEric Leblond <eric@inl.fr>
Thu, 31 Jul 2008 08:49:08 +0000 (10:49 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 31 Jul 2008 08:49:08 +0000 (10:49 +0200)
Fix gcc warning related to the lack of parenthesis.

Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
output/mysql/ulogd_output_MYSQL.c

index 562424bb7d3c6950945adc5516d4cfa631ed1f72..94c8c9a7cede3b314c286b673330bc152aa7994d 100644 (file)
@@ -140,7 +140,7 @@ static int get_columns_mysql(struct ulogd_pluginstance *upi)
        memset(upi->input.keys, 0, sizeof(struct ulogd_key) *
                                                upi->input.num_keys);
 
-       for (i = 0; field = mysql_fetch_field(result); i++) {
+       for (i = 0; (field = mysql_fetch_field(result)); i++) {
                char buf[ULOGD_MAX_KEYLEN+1];
                char *underscore;