[calls/gnome-41] 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/gnome-41] sip: origin: Bail when trying to dial empty string
- Date: Sat, 30 Oct 2021 18:37:04 +0000 (UTC)
commit 1ec6614a3d37fce1a12484aa941f233003cea718
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
(cherry picked from commit 1b4e968e8e0611e85feac0bab2b5320110604026)
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]