diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-07 10:40:29 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-20 16:28:27 +0100 |
commit | 9bac00e0b211579935640bb4d6fed988d2d148c4 (patch) | |
tree | 0742f4dc82b92f58b3d9dcca0644edd518257d4d | |
parent | 79d0013e85ca5ee5086ece1528b4403777a01f96 (diff) | |
download | libsigrokdecode-9bac00e0b211579935640bb4d6fed988d2d148c4.tar.gz libsigrokdecode-9bac00e0b211579935640bb4d6fed988d2d148c4.zip |
instance.c: Fix a compiler warning.
../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))
^~
-rw-r--r-- | instance.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |