Explorar o código

- wrong array index fixed

Jan Janak %!s(int64=17) %!d(string=hai) anos
pai
achega
c42475fa63
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/db_flatstore/flat_con.c

+ 1 - 1
modules/db_flatstore/flat_con.c

@@ -274,7 +274,7 @@ int flat_open_table(int* idx, db_con_t* con, str* name)
 				return -1;
 			}			
 		} else {
-			new[fcon->n].f = NULL;
+			new->f = NULL;
 		}
 		
 		*idx = fcon->n - 1;