Browse Source

db_mysql: fixed condition checking the parameter for db uri parsing

- on a report generated by cppcheck sent by David Binderman
Daniel-Constantin Mierla 11 years ago
parent
commit
c0b2e567b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/db_mysql/my_uri.c

+ 1 - 1
modules/db_mysql/my_uri.c

@@ -113,7 +113,7 @@ static int parse_mysql_uri(struct my_uri* res, str* uri)
 
 	prev_token = 0;
 
-	if (!res || !res) {
+	if (!res || !uri) {
 		goto err;
 	}