Fix:
authorDennis Schafroth <dennis@indexdata.com>
Tue, 20 Jul 2010 16:02:57 +0000 (18:02 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Tue, 20 Jul 2010 16:02:57 +0000 (18:02 +0200)
The facets_field variable was a pointer too much.
Also not conditional on the ZOOM_RESULT_LIST representation.

Add:
Variables to hold numbers of facets_fields and the array of facets names.

src/zoom-p.h

index a9c6b33..51125b5 100644 (file)
@@ -168,8 +168,10 @@ struct ZOOM_resultset_p {
 #if ZOOM_RESULT_LISTS
 #else
     ZOOM_resultset next;
-    ZOOM_facet_field **facets;
 #endif
+    ZOOM_facet_field *facets;
+    int num_facets;
+    char **facets_names;
 };
 
 struct ZOOM_record_p {