Skip to content

Commit

Permalink
utils/grass_clang_format.sh db/drivers/mysql/db.c
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Jan 4, 2024
1 parent 1346bda commit fc9803f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions db/drivers/mysql/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ int db__driver_open_database(dbHandle *handle)
db_get_login2("mysql", name, &user, &password, &host, &port);

connection = mysql_init(NULL);
res = mysql_real_connect(connection, host, user, password,
connpar.dbname,
port != NULL ? atoi(port) : 0,
NULL, 0);
res =
mysql_real_connect(connection, host, user, password, connpar.dbname,
port != NULL ? atoi(port) : 0, NULL, 0);

if (res == NULL) {
db_d_append_error("%s\n%s", _("Connection failed."),
Expand Down

0 comments on commit fc9803f

Please sign in to comment.