Making sure file is opened before writing string to file to avoid seg faults in case open() returns a NULL pointer.
Attempts to fix #9775
163 | @@ -164,7 +164,7 @@ class CInit 164 | delete ppmutexOpenSSL[i]; 165 | OPENSSL_free(ppmutexOpenSSL); 166 | } 167 | -} 168 | +};
Adding a ; here is wrong.
I removed the semicolon in the latest commit.
Please also remove the trailing whitespace
On Sun, Feb 19, 2017 at 4:21 PM, Kirit Thadaka notifications@github.com wrote:
@kirit93 commented on this pull request.
In src/util.cpp https://github.com/bitcoin/bitcoin/pull/9798#discussion_r101920376:
@@ -164,7 +164,7 @@ class CInit delete ppmutexOpenSSL[i]; OPENSSL_free(ppmutexOpenSSL); } -} +};
I removed the semicolon in the latest commit.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/9798#discussion_r101920376, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmv1pBwoosVmQm6Mxe3bMV5gNbEUP6ks5reF3qgaJpZM4MFdXS .
Hey I just noticed this issue has been closed. Do we still need this fix?
This issue hasn't been closed, we still need it. There were just some comments.
Looks good to me now. Could you squash to one commit? (e.g. follow https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits)