]> sigrok.org Git - sigrok-cli.git/blobdiff - sigrok-cli.c
Fix bracket placing
[sigrok-cli.git] / sigrok-cli.c
index 64406009e8f43da5ce75236e1959b415c3f84efa..2aec20593269085241b28ccfb5ab9c205030e597 100644 (file)
@@ -1044,7 +1044,7 @@ int main(int argc, char **argv)
                                printf("Cannot stack protocol decoder '%s': instance not found.\n", pds[i]);
                                return 1;
                        }
                                printf("Cannot stack protocol decoder '%s': instance not found.\n", pds[i]);
                                return 1;
                        }
-                       if ((ret = srd_inst_stack(di_from, di_to) != SRD_OK))
+                       if ((ret = srd_inst_stack(di_from, di_to)) != SRD_OK)
                                return ret;
 
                        /* Don't show annotation from this PD. Only the last PD in
                                return ret;
 
                        /* Don't show annotation from this PD. Only the last PD in