summaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index c1ff6c0..5b7b64b 100644
--- a/src/state.c
+++ b/src/state.c
@@ -385,10 +385,11 @@ lilv_state_new_from_instance(const LilvPlugin* plugin,
free(state->props);
state->props = NULL;
state->num_props = 0;
+ } else {
+ qsort(state->props, state->num_props, sizeof(Property), property_cmp);
}
}
- qsort(state->props, state->num_props, sizeof(Property), property_cmp);
qsort(state->values, state->num_values, sizeof(PortValue), value_cmp);
free(sfeatures);