Index: /trunk/Ohana/src/libdvo/include/dvo.h
===================================================================
--- /trunk/Ohana/src/libdvo/include/dvo.h	(revision 8428)
+++ /trunk/Ohana/src/libdvo/include/dvo.h	(revision 8429)
@@ -269,5 +269,5 @@
 /** dvo_catalog APIs */
 void dvo_catalog_init (Catalog *catalog, int complete);
-void dvo_catalog_create (SkyRegion *region, Catalog *catalog, int Nsecfilt);
+void dvo_catalog_create (SkyRegion *region, Catalog *catalog);
 void dvo_catalog_free (Catalog *catalog);
 int dvo_catalog_check (Catalog *catalog, int Nsecfilt, int extend);
Index: /trunk/Ohana/src/libdvo/src/dvo_catalog.c
===================================================================
--- /trunk/Ohana/src/libdvo/src/dvo_catalog.c	(revision 8428)
+++ /trunk/Ohana/src/libdvo/src/dvo_catalog.c	(revision 8429)
@@ -162,5 +162,5 @@
 // returns TRUE if the catalog was empty
 // XXX allow stdout as destination (don't lock)
-enum {DVO_OPEN_NONE, DVO_OPEN_READ, DVO_OPEN_WRITE, DVO_OPEN_UPDATE);
+enum {DVO_OPEN_NONE, DVO_OPEN_READ, DVO_OPEN_WRITE, DVO_OPEN_UPDATE};
 int dvo_catalog_open (Catalog *catalog, SkyRegion *region, int VERBOSE, char *iomode) {
 
@@ -359,16 +359,20 @@
     free (catalog[0].average); 
     catalog[0].Naverage = 0;
+    catalog[0].average = NULL;
   }
   if (catalog[0].measure != NULL) {
     free (catalog[0].measure); 
     catalog[0].Nmeasure = 0;
+    catalog[0].measure = NULL;
   }
   if (catalog[0].missing != NULL) {
     free (catalog[0].missing); 
     catalog[0].Nmissing = 0;
+    catalog[0].missing = NULL;
   }
   if (catalog[0].secfilt != NULL) {
     free (catalog[0].secfilt); 
     catalog[0].Nsecfilt = 0;
+    catalog[0].secfilt = NULL;
   }
   gfits_free_header (&catalog[0].header);
Index: /trunk/Ohana/src/libdvo/src/dvo_catalog_create.c
===================================================================
--- /trunk/Ohana/src/libdvo/src/dvo_catalog_create.c	(revision 8428)
+++ /trunk/Ohana/src/libdvo/src/dvo_catalog_create.c	(revision 8429)
@@ -136,4 +136,4 @@
   gfits_modify (&catalog[0].header, "RA1",  "%lf", 1, Rmax);
   gfits_modify (&catalog[0].header, "DEC1", "%lf", 1, Dmax);
-
+  return (TRUE);
 }
