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:
Maël Nison 2017-05-04 07:16:40 -07:00 committed by Facebook Github Bot
parent 4a86f93982
commit 7876ffec5e
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ YGConfigRef YGConfigGetDefault() {
YGConfigRef YGConfigNew(void) { YGConfigRef YGConfigNew(void) {
const YGConfigRef config = gYGMalloc(sizeof(YGConfig)); 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++; gConfigInstanceCount++;
memcpy(config, &gYGConfigDefaults, sizeof(YGConfig)); memcpy(config, &gYGConfigDefaults, sizeof(YGConfig));