mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
![]() Before this commit, line 84 read 'u' before it had a value, on 1st for-loop iteration. See comment on line 84 below: 82 for (n = 0; n < 8; n++) { 83 ctx->gpio->set(ctx->clk, inv); 84 u = (u << 1) | !!ctx->gpio->read(ctx->miso); /* <-- u is used uninitialized here */ 85 ctx->gpio->set(ctx->mosi, !!(u & 0x80)); 86 ctx->gpio->set(ctx->clk, !inv); 87 } |
||
---|---|---|
.. | ||
lws-bb-spi.c |