1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-07 12:25:31 +00:00

sip-provider: Use STR_IS_NULL_OR_EMPTY macro

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-02-12 09:35:36 +01:00
parent 372aa452c3
commit 4d402d2f79

View file

@ -627,7 +627,7 @@ calls_sip_provider_init (CallsSipProvider *self)
self->origins = g_list_store_new (CALLS_TYPE_ORIGIN);
if (filename_env && filename_env[0] != '\0')
if (!STR_IS_NULL_OR_EMPTY (filename_env))
self->filename = g_strdup (filename_env);
else
self->filename = g_build_filename (g_get_user_config_dir (),
@ -635,7 +635,7 @@ calls_sip_provider_init (CallsSipProvider *self)
SIP_ACCOUNT_FILE,
NULL);
if (!sip_test_env || sip_test_env[0] == '\0') {
if (STR_IS_NULL_OR_EMPTY (sip_test_env)) {
directory = g_path_get_dirname (self->filename);
if (g_mkdir_with_parents (directory, 0750) == -1) {
int err_save = errno;