chiark / gitweb /
fixes for cdb; it now works at least a bit
[chiark-tcl.git] / cdb / readonly.c
index a084fc8d2d5ef62c01c62f40b148ecae9b140dfd..4cf8e2218b1a38dfb68e31fb49aa72650f910de7 100644 (file)
@@ -19,6 +19,7 @@ int cht_do_cdb_open(ClientData cd, Tcl_Interp *ip,
   int rc, r;
 
   ro= TALLOC(sizeof(*ro));
+  ro->ix= -1;
   ro->fd= open(path, O_RDONLY);
   if (ro->fd<0) PE("open database file");
   r= cdb_init(&ro->cdb, ro->fd);