Skip to content

Commit 22db3f2

Browse files
committed
Fix warning about uninitialized value
Only reported when using -flto.
1 parent a6cd0b0 commit 22db3f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitcoinrpc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ int ReadHTTP(std::basic_istream<char>& stream, map<string, string>& mapHeadersRe
24472447
strMessageRet = "";
24482448

24492449
// Read status
2450-
int nProto;
2450+
int nProto = 0;
24512451
int nStatus = ReadHTTPStatus(stream, nProto);
24522452

24532453
// Read header

0 commit comments

Comments
 (0)