diff --git a/src/curl_json.c b/src/curl_json.c
index 6b50b454de1f231f24a3a4a0890693faaee063e5..181f18bbbf29f0310ace456b99c4b2920b689673 100644 (file)
--- a/src/curl_json.c
+++ b/src/curl_json.c
db->depth = 0;
memset(&db->state, 0, sizeof(db->state));
- db->state[0].entry = &(cj_tree_entry_t){
- .type = TREE, .tree = db->tree,
- };
+
+ /* This is not a compound literal because EPEL6's GCC is not cool enough to
+ * handle anonymous unions within compound literals. */
+ cj_tree_entry_t root = {0};
+ root.type = TREE;
+ root.tree = db->tree;
+ db->state[0].entry = &root;
int status = cj_perform(db);