https://gcc.gnu.org/g:6b008944e7bc3a342a734c4fcf1001d63fd0a6f8
commit r16-3608-g6b008944e7bc3a342a734c4fcf1001d63fd0a6f8 Author: Andre Vehreschild <[email protected]> Date: Thu Sep 4 08:20:04 2025 +0200 Fix uninitialized variable in frontend [PR121806] gcc/ChangeLog: PR middle-end/121806 * gcc.cc (for_each_path): Initialize return value. Diff: --- gcc/gcc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gcc.cc b/gcc/gcc.cc index 722d42c69683..8da821e92ac4 100644 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc @@ -2788,7 +2788,7 @@ for_each_path (const struct path_prefix *paths, const char *multi_suffix; const char *just_multi_suffix; char *path = NULL; - decltype (callback (nullptr)) ret; + decltype (callback (nullptr)) ret = nullptr; bool skip_multi_dir = false; bool skip_multi_os_dir = false;
