From 25a367862dbdfb0fdfdfc6f619af3f0a7e0fe79f Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 30 Jun 2025 15:29:44 -0700 Subject: Use nullptr --- cstring/src/cstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cstring/src/cstring.c') diff --git a/cstring/src/cstring.c b/cstring/src/cstring.c index e308589..100c130 100644 --- a/cstring/src/cstring.c +++ b/cstring/src/cstring.c @@ -23,7 +23,7 @@ string string_new(const char* cstr) { void string_del(string* str) { if (str->data) { free((void*)str->data); - str->data = 0; + str->data = nullptr; str->length = 0; } } -- cgit v1.2.3