Ticket #1107: state-new-fix.patch

File state-new-fix.patch, 505 bytes (added by falkTX, 6 years ago)
  • lilv-static-0.22.1+svn5808

    old new new_state_from_model(LilvWorld* wo 
    499499        const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
    500500        const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
    501501        state->label = lilv_strdup((const char*)sord_node_get_string(object));
    502         if (!state->dir) {
     502        if (!state->dir && graph) {
    503503            state->dir = lilv_strdup((const char*)sord_node_get_string(graph));
    504504        }
    505505        sord_iter_free(i);