From 4d402d2f7989c41000789a098ecf0b24d4fda268 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sun, 12 Feb 2023 09:35:36 +0100 Subject: [PATCH] sip-provider: Use STR_IS_NULL_OR_EMPTY macro --- plugins/provider/sip/calls-sip-provider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/provider/sip/calls-sip-provider.c b/plugins/provider/sip/calls-sip-provider.c index 03a7cbe..6a275c6 100644 --- a/plugins/provider/sip/calls-sip-provider.c +++ b/plugins/provider/sip/calls-sip-provider.c @@ -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;