summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorRalf Donau <ruelle@volleyballschlaeger.de>2022-04-26 21:08:49 +0200
committerLinus Groh <mail@linusgroh.de>2022-04-26 22:42:54 +0200
commite11fb83bb79a9802121c0a6888141c080ca476a4 (patch)
tree28fd65bd637ae3c4dcdd8de0ab0045ed048f5f92 /Userland/Utilities
parenta67bbf1ac43f2074c62d39a3ce68920b929c742c (diff)
downloadserenity-e11fb83bb79a9802121c0a6888141c080ca476a4.zip
config: Allow setting a key to the empty string
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/config.cpp2
1 files changed, 1 insertions, 1 deletions
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<int> 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;
}