Fixes Travis error reporting
Summary: Just cherry-picked my commit from #508 Closes https://github.com/facebook/yoga/pull/542 Differential Revision: D5002335 Pulled By: emilsjolander fbshipit-source-id: 3f61a235c41627e9cfb90dce150323f11892e65f
This commit is contained in:
parent
4a86f93982
commit
7876ffec5e
|
@ -415,7 +415,7 @@ YGConfigRef YGConfigGetDefault() {
|
|||
|
||||
YGConfigRef YGConfigNew(void) {
|
||||
const YGConfigRef config = gYGMalloc(sizeof(YGConfig));
|
||||
YGLog(NULL, config != NULL, "Could not allocate memory for config");
|
||||
YGAssert(config != NULL, "Could not allocate memory for config");
|
||||
|
||||
gConfigInstanceCount++;
|
||||
memcpy(config, &gYGConfigDefaults, sizeof(YGConfig));
|
||||
|
|
Loading…
Reference in New Issue