MT#61444 sipwise_vm_ext_timezone: remove build warning

> apps/app_voicemail.c:8211:26: warning: the comparison will always evaluate as 'false' for the address of 'mailbox' will never be NULL [-Waddress]
>  8211 | if (vmu->mailbox == NULL || ast_strlen_zero(sw_timezone_table))
>       | ^~
> apps/app_voicemail.c:767:14: note: 'mailbox' declared here
>   767 | char mailbox[MAX_VM_MBOX_ID_LEN]; /*!< granig: the mailbox uuid */
>       | ^~~~~~~
>

Change-Id: I077dd5f834cac9ee2436701a15f51e13783c20e5
(cherry picked from commit 271f51e421)
(cherry picked from commit 05149c376d)
mr13.0.1
Victor Seva 2 years ago
parent e16c28bc21
commit 4dbf1a04fa

@ -7,7 +7,7 @@ Subject: sipwise_vm_add_actions_wmi
1 file changed, 277 insertions(+), 19 deletions(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index c98cefa..afee86d 100644
index 8f4f3af..dbf21ca 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1043,6 +1043,52 @@ static int adsiver = 1;

@ -7,7 +7,7 @@ Subject: sipwise_vm_add_arabic_support
1 file changed, 93 insertions(+), 2 deletions(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 3064599..8373605 100644
index 7c914b8..beda819 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -8511,8 +8511,9 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc

@ -7,7 +7,7 @@ Subject: sipwise_vm_add_callid
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index f9a9d1d..a3d1687 100644
index 951a9cc..d61a30e 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -858,7 +858,7 @@ static char odbc_database[80] = "asterisk";

@ -7,7 +7,7 @@ Subject: sipwise_vm_ast_load_realtime_use_uuid
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index a3d1687..606079c 100644
index d61a30e..beaff3a 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1772,7 +1772,7 @@ static int is_valid_dtmf(const char *key)

@ -7,7 +7,7 @@ Subject: sipwise_vm_ext_timezone
1 file changed, 67 insertions(+)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index f26bbfa..f9a9d1d 100644
index f26bbfa..951a9cc 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -948,6 +948,8 @@ static int passwordlocation;
@ -49,7 +49,7 @@ index f26bbfa..f9a9d1d 100644
+ struct odbc_obj *obj = NULL;
+ SQLHSTMT stmt = NULL;
+
+ if (vmu->mailbox == NULL || ast_strlen_zero(sw_timezone_table))
+ if (ast_strlen_zero(sw_timezone_table))
+ return;
+
+ snprintf(sql, sizeof(sql),

@ -7,7 +7,7 @@ Subject: sipwise_vm_fix_double_menu
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index afee86d..5664ced 100644
index dbf21ca..33ac414 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -12236,16 +12236,7 @@ static int vm_execmain(struct ast_channel *chan, const char *data)

@ -7,7 +7,7 @@ Subject: sipwise_vm_fix_prev_message
1 file changed, 1 insertion(+)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 8373605..c98cefa 100644
index beda819..8f4f3af 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -11426,6 +11426,7 @@ static int vm_execmain(struct ast_channel *chan, const char *data)

@ -7,7 +7,7 @@ Subject: sipwise_vm_hebrew_language_fixups
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 97f1f54..3064599 100644
index fe13968..7c914b8 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -8510,10 +8510,15 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc

@ -7,7 +7,7 @@ Subject: sipwise_vm_pointers_malloc
1 file changed, 2 insertions(+)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 48724c4..97f1f54 100644
index c365407..fe13968 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -11333,6 +11333,8 @@ static int vm_execmain(struct ast_channel *chan, const char *data)

@ -7,7 +7,7 @@ Subject: sipwise_vm_store_message_add_diag_info
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 606079c..48724c4 100644
index beaff3a..c365407 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4502,6 +4502,10 @@ static SQLHSTMT insert_data_cb(struct odbc_obj *obj, void *vdata)

Loading…
Cancel
Save