aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Vehreschild <vehre@gcc.gnu.org>2025-09-04 08:20:04 +0200
committerSam James <sam@gentoo.org>2025-09-05 23:01:48 +0100
commit6b008944e7bc3a342a734c4fcf1001d63fd0a6f8 (patch)
tree47f77e78fe01d182cfe14e49a9705ed505a8f653
parenta6bf07653cd272add46a2218ec141c95d7f02427 (diff)
downloadgcc-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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index 722d42c..8da821e 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;