Skip to content

Commit 231234b

Browse files
committed
Refactoring ISSUE Yubico#230
1 parent fc2dc08 commit 231234b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

util.c

+7-3
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,16 @@ check_user_token_mysql(const char *mysql_server,
138138
int int_data;
139139
int row_count;
140140

141-
if(mysql_library_init(0, NULL, NULL)){
141+
if(mysql_library_init(0, NULL, NULL))
142+
{
142143
if(verbose)
143144
D (debug_file, "could not initialize MySQL client library");
144145
return retval;
145146
}
146147

147148
con = mysql_init(con);
148-
if(!con) {
149+
if(!con)
150+
{
149151
if(verbose)
150152
D (debug_file, "out of memorys");
151153
return retval;
@@ -178,7 +180,9 @@ check_user_token_mysql(const char *mysql_server,
178180
D (debug_file, "mysql_stmt_prepare() failed %s", mysql_stmt_error(stmt));
179181
goto end_connection;
180182
}
181-
}else{
183+
}
184+
else
185+
{
182186
if(mysql_stmt_prepare(stmt, sql2, strlen(sql2)))
183187
{
184188
if(verbose)

0 commit comments

Comments
 (0)