diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 82274fde6db0c1..ade8a60827886d 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -89,7 +89,7 @@ TLSWrap::~TLSWrap() { bool TLSWrap::InvokeQueued(int status, const char* error_str) { - Debug(this, "InvokeQueued(%d, %s)", status, error_str); + Debug(this, "InvokeQueued(%d, %s)", status, error_str ? error_str : ""); if (!write_callback_scheduled_) return false;