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:
committed by
Facebook Github Bot
parent
91230ae177
commit
c7ab004922
@@ -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));
|
||||
|
Reference in New Issue
Block a user