summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 9b44c42..ac1468c 100644
--- a/src/state.c
+++ b/src/state.c
@@ -193,6 +193,10 @@ store_callback(LV2_State_Handle handle,
{
LilvState* const state = (LilvState*)handle;
+ if (!key) {
+ return LV2_STATE_ERR_UNKNOWN; // TODO: Add status for bad arguments
+ }
+
if (find_property((const LilvState*)handle, key)) {
return LV2_STATE_ERR_UNKNOWN; // TODO: Add status for duplicate keys
}