Skip to content

Commit 08e5938

Browse files
committed
Fix uninitialized variable warning. NFCI.
1 parent fe1a1d5 commit 08e5938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-ar/llvm-ar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ static int ar_main(int argc, char **argv) {
10921092
cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Argv);
10931093
for (size_t i = 1; i < Argv.size(); ++i) {
10941094
StringRef Arg = Argv[i];
1095-
const char *match;
1095+
const char *match = nullptr;
10961096
auto MatchFlagWithArg = [&](const char *expected) {
10971097
size_t len = strlen(expected);
10981098
if (Arg == expected) {

0 commit comments

Comments
 (0)