diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2025-09-04 08:20:04 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2025-09-05 23:01:48 +0100 |
commit | 6b008944e7bc3a342a734c4fcf1001d63fd0a6f8 (patch) | |
tree | 47f77e78fe01d182cfe14e49a9705ed505a8f653 | |
parent | a6bf07653cd272add46a2218ec141c95d7f02427 (diff) | |
download | gcc-6b008944e7bc3a342a734c4fcf1001d63fd0a6f8.zip gcc-6b008944e7bc3a342a734c4fcf1001d63fd0a6f8.tar.gz gcc-6b008944e7bc3a342a734c4fcf1001d63fd0a6f8.tar.bz2 |
Fix uninitialized variable in frontend [PR121806]
gcc/ChangeLog:
PR middle-end/121806
* gcc.cc (for_each_path): Initialize return value.
-rw-r--r-- | gcc/gcc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |