Răsfoiți Sursa

db_postgres: fixed condition checking the parameter for db uri parsing

- on a report generated by cppcheck sent by David Binderman
Daniel-Constantin Mierla 11 ani în urmă
părinte
comite
480b6d4dfc
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      modules/db_postgres/pg_uri.c

+ 1 - 1
modules/db_postgres/pg_uri.c

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