Browse Source

Remove compiler warning about uninitialized variable.

Jan Janak 16 years ago
parent
commit
e2b6d847e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/db_postgres/pg_oid.c

+ 1 - 1
modules/db_postgres/pg_oid.c

@@ -79,7 +79,7 @@ static int get_index(char* name)
 pg_type_t* pg_new_oid_table(PGresult* res)
 pg_type_t* pg_new_oid_table(PGresult* res)
  {
  {
 	pg_type_t* table = NULL;
 	pg_type_t* table = NULL;
-	int row, n, end, idx, fields;
+	int row, n = 0, end, idx, fields;
 	str s;
 	str s;
 	
 	
 	if (res == NULL || PQresultStatus(res) != PGRES_TUPLES_OK) goto error;
 	if (res == NULL || PQresultStatus(res) != PGRES_TUPLES_OK) goto error;