config: Allow setting a key to the empty string

This commit is contained in:
Ralf Donau 2022-04-26 21:08:49 +02:00 committed by Linus Groh
parent a67bbf1ac4
commit e11fb83bb7
Notes: sideshowbarker 2024-07-17 11:31:21 +09:00

View file

@ -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;
}