Fix some glib nullptr-check warning messages

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2023-10-04 16:34:08 +02:00
parent 6f1ea087c8
commit 2b29d1baf3
2 changed files with 3 additions and 2 deletions

View File

@@ -481,7 +481,7 @@ static void
_accounts_set_string_option(const char* account_name, const char* const option, const char* const value)
{
if (accounts_account_exists(account_name)) {
g_key_file_set_string(accounts, account_name, option, value);
g_key_file_set_string(accounts, account_name, option, value ?: "");
_save_accounts();
}
}