]> err.no Git - yubikey-personalization.old/commitdiff
Suggest parantheses around assgnmnt used as truth value
authorClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:44:21 +0000 (17:44 +0100)
committerClemens Lang <neverpanic@gmail.com>
Sat, 18 Feb 2012 16:44:21 +0000 (17:44 +0100)
ykcore/ykcore.c

index 2ad29d2cf560f5ef165f9050caff002455051332..200b5858b6857f6c3a595abc5622da02dc2f7967 100644 (file)
@@ -544,7 +544,7 @@ int yk_write_to_key(YK_KEY *yk, uint8_t slot, const void *buf, int bufcount)
                   to speed up the transfer */
 
                for (i = 0; i < (FEATURE_RPT_SIZE - 1); i++) {
-                       if (repbuf[i] = *ptr++) all_zeros = 0;
+                       if ((repbuf[i] = *ptr++)) all_zeros = 0;
                }
                if (all_zeros && (seq > 0) && (ptr < end))
                        continue;