commit | 02e6367026af6f39c623384fa3b99f83d864deab | [log] [tgz] |
---|---|---|
author | dimitry <dimitry@google.com> | Wed Nov 29 09:01:41 2023 +0100 |
committer | dimitry <dimitry@google.com> | Fri Dec 01 17:23:26 2023 +0100 |
tree | 8052fdfdfa53b8978e741ce7e667611f9a3d647a | |
parent | 1d540ba6d0a68e17eba7ca8290ec57e36fa4280a [diff] |
Handle empty tracing property case Test: set berberis.tracing to '' make sure it does not crash Bug: http://b/232598137 Change-Id: Ia5104ed3e66b13e0bfcdf0d9b153e09da6dec5ca
diff --git a/base/tracing.cc b/base/tracing.cc index be34629..5954178 100644 --- a/base/tracing.cc +++ b/base/tracing.cc
@@ -120,7 +120,7 @@ ScopedErrno scoped_errno; auto env = GetTracingConfig(); - if (!env) { + if (!env || !env[0]) { return; }