From 9d0c2462943a3a5e69c1a69a4385bc7204eb5674 Mon Sep 17 00:00:00 2001 From: ncteisen Date: Mon, 9 Apr 2018 12:20:30 -0700 Subject: [PATCH] Add clarifying comment, stylistic consistency --- src/core/lib/debug/trace.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/lib/debug/trace.cc b/src/core/lib/debug/trace.cc index e6660c6c817..01c1e867d9d 100644 --- a/src/core/lib/debug/trace.cc +++ b/src/core/lib/debug/trace.cc @@ -55,7 +55,8 @@ bool TraceFlagList::Set(const char* name, bool enabled) { found = true; } } - if (!found && strcmp(name, "")) { + // check for unknowns, but ignore "", to allow to GRPC_TRACE= + if (!found && 0 != strcmp(name, "")) { gpr_log(GPR_ERROR, "Unknown trace var: '%s'", name); return false; /* early return */ }