load-fragment: terminate the specifier table (#34421)

Otherwise an invalid specifier iterates over uninitialized data.

Fixes a bug introduced by 0b40688d18 (v254).
This commit is contained in:
Ronan Pigott
2024-09-15 12:21:39 +09:00
committed by GitHub
parent f921e7d6a3
commit 32b8065e87
+1
View File
@@ -2728,6 +2728,7 @@ int config_parse_environ(
COMMON_CREDS_SPECIFIERS(ltype),
{ 'h', specifier_user_home, NULL },
{ 's', specifier_user_shell, NULL },
{}
};
for (const char *p = rvalue;; ) {