Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
baimard committed Dec 7, 2020
1 parent e663351 commit c0de69f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit c0de69f

Please sign in to comment.