about summary refs log tree commit diff
path: root/absl/strings/substitute.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/strings/substitute.h')
-rw-r--r--absl/strings/substitute.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/substitute.h b/absl/strings/substitute.h
index 3fc4ac4cdcc4..76d6d8e966d6 100644
--- a/absl/strings/substitute.h
+++ b/absl/strings/substitute.h
@@ -109,7 +109,7 @@ class Arg {
   //
   // Explicitly overload `const char*` so the compiler doesn't cast to `bool`.
   Arg(const char* value)  // NOLINT(runtime/explicit)
-      : piece_(value) {}
+      : piece_(absl::NullSafeStringView(value)) {}
   Arg(const std::string& value)  // NOLINT(runtime/explicit)
       : piece_(value) {}
   Arg(absl::string_view value)  // NOLINT(runtime/explicit)