Skip to content

Commit

Permalink
mx_mysql: Remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Dec 28, 2023
1 parent d0e4b47 commit 444b248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mx_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int mx__mysql_real_connect(struct mx_mysql *mysql, const char *host, cons
assert(mysql->mysql);

m = mysql_real_connect(mysql->mysql, host, user, passwd, db, port, unix_socket, client_flag);
if (m && m == mysql->mysql)
if (m)
return 0;

mx_mysql_save_error(mysql_error(mysql->mysql));
Expand Down

0 comments on commit 444b248

Please sign in to comment.