SDL/src/stdlib
Sam Lantinga b878ab1691 Fix msvc analyzer warnings
- Initialize some out variables that are annotated inout in the function setting them.

- Fix 'dwVerHandle' might not be '0' warning from msvc analyzer calling GetFileVersionInfoA. MSDN says that
  the lpdwHandle param to GetFileVersionInfoSize is optional (set to zero) and the dwHandle param to
  GetFileVersionInfoA is ignored. msvc goes a step further and explicitly warns if dwHandle is not provably 0.

Fixes the following:
SDL3\src\stdlib\SDL_string.c(2359): warning C6054: String 'text' might not be zero-terminated.
SDL3\src\video\windows\SDL_windowsevents.c(897): warning C6001: Using uninitialized memory 'devName'.
SDL3\src\video\windows\SDL_windowskeyboard.c(644): warning C6388: 'dwVerHandle' might not be '0':  this does not adhere to the specification for the function 'GetFileVersionInfoA'.
2026-03-30 10:38:55 -07:00
..
SDL_casefolding.h Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_crc16.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_crc32.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_getenv.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_getenv_c.h Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_iconv.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_malloc.c Added code to detect memory overwrites on Windows 2026-02-13 13:53:25 -08:00
SDL_memcpy.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_memmove.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_memset.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_mslibc.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_mslibc_arm64.masm Implement __chkstk for arm64 2025-01-02 01:15:28 +01:00
SDL_mslibc_x64.masm Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm 2024-01-04 17:46:07 +01:00
SDL_murmur3.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_qsort.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_random.c stdlib: Patched SDL_rand_f to compile on pre-C99 compilers. 2026-03-28 11:18:03 -04:00
SDL_stdlib.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_string.c Fix msvc analyzer warnings 2026-03-30 10:38:55 -07:00
SDL_strtokr.c Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_sysstdlib.h Updated copyright for 2026 2026-01-01 09:40:08 -08:00
SDL_vacopy.h Updated copyright for 2026 2026-01-01 09:40:08 -08:00