From 9bac00e0b211579935640bb4d6fed988d2d148c4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 7 Feb 2017 10:40:29 +0100 Subject: instance.c: Fix a compiler warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../instance.c: In function ‘srd_inst_find_by_id’: ../instance.c:485:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (di = srd_inst_find_by_id_stack(inst_id, tmp)) ^~ --- instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2