+ struct ec_node_any *node = (struct ec_node_any *)gen_node;
+ const struct ec_config *value = NULL;
+ char *s = NULL;
+
+ value = ec_config_dict_get(config, "attr");
+ if (value != NULL) {
+ s = ec_strdup(value->string);
+ if (s == NULL)
+ goto fail;
+ }
+
+ ec_free(node->attr_name);
+ node->attr_name = s;
+