-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Fix Issue #9775 (Check returned value of fopen) #9798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/util.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a ; here is wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/util.cpp
<#9798 (comment)>:
> @@ -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
<#9798 (comment)>, 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) |
…open) 40f11f8 Fix for issue bitcoin#9775. Added check for open() returning a NULL pointer. (kirit93)
…open) 40f11f8 Fix for issue bitcoin#9775. Added check for open() returning a NULL pointer. (kirit93)
…open) 40f11f8 Fix for issue bitcoin#9775. Added check for open() returning a NULL pointer. (kirit93)
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