From 58adfe6d17afe84639c56806a00bb2164bc93a7a Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 15 Jun 2023 21:47:41 +0800 Subject: [PATCH] ... --- src/str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/str.h b/src/str.h index 2eaa3c8d..d5ac7bf6 100644 --- a/src/str.h +++ b/src/str.h @@ -118,7 +118,7 @@ struct Str{ } friend std::ostream& operator<<(std::ostream& os, const Str& str){ - if(str.data!=nullptr) os.write(str.data, str.size); + os.write(str.data, str.size); return os; }