*/
GHashTable *cr_metadata_hashtable(cr_Metadata *md);
-// XXX TODO Remove
-/** Return GStringChunk from a cr_Metadata */
-//#define cr_metadata_chunk(X) ((X)->chunk)
-
/** Create new (empty) metadata hashtable.
* It is NOT thread safe to load data into single cr_Metadata
* from multiple threads. But non modifying access to the loaded data
assert(!err || *err == NULL);
- if (!pkg) {
- result.primary = NULL;
- result.filelists = NULL;
- result.other = NULL;
+ result.primary = NULL;
+ result.filelists = NULL;
+ result.other = NULL;
+
+ if (!pkg)
return result;
- }
result.primary = cr_xml_dump_primary(pkg, &tmp_err);
if (tmp_err) {