aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssl/test/recipes/ssh:/anongit@git.FreeBSD.org/src.git
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2026-04-26 23:03:02 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2026-04-26 23:03:02 +0000
commit92e5f6e1995acb10628ab210cc9f19dbf74f2948 (patch)
treefbe5960e77b5d0b8aaa2baf1aa91aa9bd0d11c34 /crypto/openssl/test/recipes/ssh:/anongit@git.FreeBSD.org/src.git
parent4feeca3193c316c18472cd40f215446fda3bd739 (diff)
x86/ucode: fix gcc uninitialised warningHEADmain
This fixes the case where selected_size is never set to anything in the loop. Whilst here, also set selected_fw to NULL so the case of "no firmware" correctly sets everything to NULL/0. ``` --- ucode_subr.o --- /workspace/src/sys/x86/x86/ucode_subr.c: In function 'ucode_amd_find': /workspace/src/sys/x86/x86/ucode_subr.c:237:25: warning: 'selected_size' may be used uninitialized [-Wmaybe-uninitialized] 237 | *selected_sizep = selected_size; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ / workspace/src/sys/x86/x86/ucode_subr.c:105:16: note: 'selected_size' was declared here 105 | size_t selected_size; | ^~~~~~~~~~~~~ ``` Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D55439
Diffstat (limited to 'crypto/openssl/test/recipes/ssh:/anongit@git.FreeBSD.org/src.git')
0 files changed, 0 insertions, 0 deletions