Files
Matheus C.andKenny Levinsen 5bc72dee47 main: fix uninitialized nag_gpu on early shutdown
nag_gpu was declared and initialized after the first two goto
shutdown jump points (config load failure, server start failure).
Reaching shutdown: via either path means nag_gpu.client is read
at "if (nag_gpu.client != NULL)" before its initializer ever ran
— an indeterminate value per C11, not guaranteed to be NULL.

This moves the declaration/initialization before
load_main_config, so nag_gpu is always initialized by the time
any goto shutdown path is reached.

Not independently reproduced as an observed crash; the fix
addresses undefined behavior per the C standard regardless of
whether it manifests as a crash on any given stack layout.
2026-07-31 13:47:07 +02:00
..
2026-07-18 15:04:34 +02:00
2026-07-18 15:04:34 +02:00
2024-08-05 02:13:49 +02:00
2025-04-28 23:34:23 +02:00
2026-07-18 15:04:34 +02:00
2026-06-30 18:55:11 +02:00
2026-07-18 15:04:34 +02:00
2021-01-08 09:33:51 +01:00