From 36404497feac49e32ec738d6105dd748d3385f82 Mon Sep 17 00:00:00 2001 From: Filip Filmar Date: Wed, 25 Mar 2020 16:31:46 -0700 Subject: [PATCH] [runner] Corrects logging of close() status (flutter/engine#16698) close() returns a nonzero in case of an error. Old code had it log only when *no* error happens on close, which is exactly the opposite of what we want. --- engine/src/flutter/shell/platform/fuchsia/flutter/runner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/runner.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/runner.cc index 6459236730..8933f963df 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/runner.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/runner.cc @@ -75,7 +75,7 @@ bool InitializeTZData() { << strerror(errno); return false; } - if (!close(fd)) { + if (close(fd)) { FML_LOG(WARNING) << "Could not close: " << tzdata_dir << ": " << strerror(errno); }