[calls] sip: origin: Bail when trying to dial empty string
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] sip: origin: Bail when trying to dial empty string
- Date: Sat, 30 Oct 2021 17:23:41 +0000 (UTC)
commit 1b4e968e8e0611e85feac0bab2b5320110604026
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Fri Oct 29 01:01:59 2021 +0200
sip: origin: Bail when trying to dial empty string
plugins/sip/calls-sip-origin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index 62b87aa1..ddf08582 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -275,7 +275,7 @@ dial (CallsOrigin *origin,
name = calls_origin_get_name (origin);
- if (address == NULL) {
+ if (!address || !*address) {
g_warning ("Tried dialing on origin '%s' without an address",
name);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]