]> sigrok.org Git - libsigrokdecode.git/blobdiff - instance.c
decoder: internal 'always false' term, handle invalid skip and channel
[libsigrokdecode.git] / instance.c
index 36fb2d0c32889b609712ba6dc2f42a00f1aecda2..5264bd0bd3a54d72f8503e926931f542ab310d96 100644 (file)
@@ -895,6 +895,8 @@ static gboolean all_terms_match(const struct srd_decoder_inst *di,
 
        for (l = cond; l; l = l->next) {
                term = l->data;
+               if (term->type == SRD_TERM_ALWAYS_FALSE)
+                       return FALSE;
                if (!term_matches(di, term, sample_pos))
                        return FALSE;
        }