summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--type_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/type_decoder.c b/type_decoder.c
index 454e7ea..c097c7f 100644
--- a/type_decoder.c
+++ b/type_decoder.c
@@ -677,7 +677,7 @@ static int create_term_list(struct srd_decoder_inst *di,
term->type = SRD_TERM_SKIP;
term->num_samples_to_skip = num_samples_to_skip;
term->num_samples_already_skipped = 0;
- if (num_samples_to_skip < 1)
+ if (num_samples_to_skip < 0)
term->type = SRD_TERM_ALWAYS_FALSE;
} else {
srd_err("Term key is neither a string nor a number.");