From: Aurelien Jacobs Date: Tue, 3 Jun 2014 14:43:04 +0000 (+0200) Subject: chronovu-la: re-add return that was inadvertently removed in commit aeff7fa2 X-Git-Tag: libsigrok-0.4.0~1290 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=13dd25bdb807217addc76e9c446485e28e6ec00a;p=libsigrok.git chronovu-la: re-add return that was inadvertently removed in commit aeff7fa2 --- diff --git a/hardware/chronovu-la/api.c b/hardware/chronovu-la/api.c index c4d80d7e..526d51cf 100644 --- a/hardware/chronovu-la/api.c +++ b/hardware/chronovu-la/api.c @@ -378,6 +378,7 @@ static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi, break; case SR_CONF_TRIGGER_MATCH: if (!sdi || !sdi->priv || !(devc = sdi->priv) || !devc->prof) + return SR_ERR_BUG; *data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32, trigger_matches, devc->prof->num_trigger_matches, sizeof(int32_t));