aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/driver.cc
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-12-08 14:27:56 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-12-08 14:27:56 -0800
commit3c1cd531870c9bd047cf9cf507c9abdf69882634 (patch)
treee6472585ab09cb4f14dcde2aaddcaf4b2b79d54e /test/cpp/qps/driver.cc
parent3059828bf6129d6ecb6ce705347fc43e0affa209 (diff)
parentad13e597e5664391589d3100efbe8337fad557b2 (diff)
Merge remote-tracking branch 'upstream/master' into handshaker_early_exit
Diffstat (limited to 'test/cpp/qps/driver.cc')
-rw-r--r--test/cpp/qps/driver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc
index ea0b38e8ad..22b2cd080d 100644
--- a/test/cpp/qps/driver.cc
+++ b/test/cpp/qps/driver.cc
@@ -101,7 +101,7 @@ static std::unordered_map<string, std::deque<int>> get_hosts_and_cores(
static deque<string> get_workers(const string& name) {
char* env = gpr_getenv(name.c_str());
- if (!env) return deque<string>();
+ if (!env || strlen(env) == 0) return deque<string>();
deque<string> out;
char* p = env;