Skip to content

Commit a21b15c

Browse files
committed
Move the time vars above the GET_CLIENT macro
1 parent a3686dc commit a21b15c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysql2/client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ static VALUE rb_mysql_info(VALUE self) {
326326

327327
static VALUE rb_connect(VALUE self, VALUE user, VALUE pass, VALUE host, VALUE port, VALUE database, VALUE socket, VALUE flags) {
328328
struct nogvl_connect_args args;
329-
VALUE rv;
330-
GET_CLIENT(self);
331329
time_t start_time, end_time;
332330
unsigned int elapsed_time, connect_timeout;
331+
VALUE rv;
332+
GET_CLIENT(self);
333333

334334
args.host = NIL_P(host) ? NULL : StringValuePtr(host);
335335
args.unix_socket = NIL_P(socket) ? NULL : StringValuePtr(socket);

0 commit comments

Comments
 (0)