From c0de69f07a3ec784f1438acf4abcb7743e6ee9f7 Mon Sep 17 00:00:00 2001 From: Benjamin AIMARD Date: Mon, 7 Dec 2020 09:13:57 +0100 Subject: [PATCH] Fix warning --- util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util.c b/util.c index af2bf7b6..7cfb0ca3 100644 --- a/util.c +++ b/util.c @@ -137,8 +137,8 @@ check_user_token_mysql (const char *mysql_server, long unsigned int length; int int_data; int row_count; - bool is_null; - bool error; + bool is_null = false; + bool error = false; if (mysql_library_init(0, NULL, NULL)) { if(verbose){ @@ -225,9 +225,9 @@ check_user_token_mysql (const char *mysql_server, memset(bind, 0, sizeof(bind)); bind[0].buffer_type = MYSQL_TYPE_LONG; bind[0].buffer = (char *)&int_data; - bind[0].length= &length; - bind[0].is_null= &is_null; - bind[0].error= &error; + bind[0].length = &length; + bind[0].is_null = &is_null; + bind[0].error = &error; if (mysql_stmt_bind_result(stmt, bind)) {