summaryrefslogtreecommitdiff
path: root/instance.c
diff options
context:
space:
mode:
Diffstat (limited to 'instance.c')
-rw-r--r--instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/instance.c b/instance.c
index 5b98336..00bc802 100644
--- a/instance.c
+++ b/instance.c
@@ -482,7 +482,7 @@ SRD_API struct srd_decoder_inst *srd_inst_find_by_id(struct srd_session *sess,
di = NULL;
for (l = sess->di_list; l; l = l->next) {
tmp = l->data;
- if (di = srd_inst_find_by_id_stack(inst_id, tmp))
+ if ((di = srd_inst_find_by_id_stack(inst_id, tmp)) != NULL)
break;
}