From e11fb83bb79a9802121c0a6888141c080ca476a4 Mon Sep 17 00:00:00 2001 From: Ralf Donau Date: Tue, 26 Apr 2022 21:08:49 +0200 Subject: [PATCH] config: Allow setting a key to the empty string --- Userland/Utilities/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/config.cpp b/Userland/Utilities/config.cpp index 128af34b64..d0ed97d897 100644 --- a/Userland/Utilities/config.cpp +++ b/Userland/Utilities/config.cpp @@ -32,7 +32,7 @@ ErrorOr serenity_main(Main::Arguments arguments) return 0; } - if (!value_to_write.is_empty()) { + if (!value_to_write.is_null()) { Config::write_string(domain, group, key, value_to_write); return 0; }