Commit 198e9e39 by Jamie Madill

Fix parity bug in egl::Error::createMessageString.

The check should be "==" instead of "!=". This gave a crash any time we would generate an Error with a message. Change-Id: I7c5d57e30053591b4713d8c829e89fd1c0703da0 Reviewed-on: https://chromium-review.googlesource.com/244820Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarAustin Kinross <aukinros@microsoft.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent b82e1a9c
......@@ -137,7 +137,7 @@ Error &Error::operator=(const Error &other)
void Error::createMessageString() const
{
if (mMessage != NULL)
if (mMessage == nullptr)
{
mMessage = new std::string();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment