diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-11-01 14:07:48 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2023-11-01 14:14:22 +0100 |
commit | cdc02034cfd4ba5f94bf26ee9e9c23609a9c47a4 (patch) | |
tree | cdf2289284c99077dbeebf045d461ebe34ac5f61 /docs/tutorials/03-memory.md | |
parent | a69b5c8c416342a7855da19dfdc264a078f30848 (diff) |
nl80211: fix maybe uninitialized variable
When compiling with optimizations, gcc reports:
.../nl80211.c: In function ‘uc_nl_convert_rta_vht_mcs’:
.../nl80211.c:1310:31: error: ‘max_idx’ may be used uninitialized [-Werror=maybe-uninitialized]
1310 | for (j = 0; j <= max_idx; j++)
| ~~^~~~~~~~~~
Slightly refactor the code to avoid this issue.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'docs/tutorials/03-memory.md')
0 files changed, 0 insertions, 0 deletions