mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-16 23:35:49 +00:00
sip-origin: Use STR_IS_NULL_OR_EMPTY
This commit is contained in:
parent
e6cbf5b634
commit
1cff3a46cb
1 changed files with 3 additions and 2 deletions
|
@ -40,6 +40,7 @@
|
|||
#include "calls-sip-media-manager.h"
|
||||
#include "calls-sip-origin.h"
|
||||
#include "calls-sip-util.h"
|
||||
#include "calls-util.h"
|
||||
#include "enum-types.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
@ -956,7 +957,7 @@ setup_nua (CallsSipOrigin *self)
|
|||
g_autofree char *sips_url = NULL;
|
||||
g_autofree char *from_str = NULL;
|
||||
|
||||
if (!sip_test_env || sip_test_env[0] == '\0') {
|
||||
if (!STR_IS_NULL_OR_EMPTY (sip_test_env)) {
|
||||
CallsNetworkWatch *nw = calls_network_watch_get_default ();
|
||||
if (nw) {
|
||||
ipv4_bind = calls_network_watch_get_ipv4 (nw);
|
||||
|
@ -1294,7 +1295,7 @@ update_name (CallsSipOrigin *self)
|
|||
{
|
||||
g_assert (CALLS_IS_SIP_ORIGIN (self));
|
||||
|
||||
if (self->display_name && self->display_name[0] != '\0')
|
||||
if (!STR_IS_NULL_OR_EMPTY (self->display_name))
|
||||
self->name = self->display_name;
|
||||
else
|
||||
self->name = self->user;
|
||||
|
|
Loading…
Reference in a new issue