[Asterisk-code-review] test_taskprocessor.c: Fix test failure on Ubuntu (...asterisk[17])
George Joseph
asteriskteam at digium.com
Fri Oct 11 08:42:11 CDT 2019
George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/c/asterisk/+/13036 )
Change subject: test_taskprocessor.c: Fix test failure on Ubuntu
......................................................................
test_taskprocessor.c: Fix test failure on Ubuntu
Fixes a failure in /main/taskprocesor unit test, only occurring in Ubuntu.
Newer versions of GCC require variable initialization.
Change-Id: I2994d8aab9307a8c2c7330584f287a27144a580c
---
M tests/test_taskprocessor.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
Sean Bright: Looks good to me, approved
George Joseph: Approved for Submit
diff --git a/tests/test_taskprocessor.c b/tests/test_taskprocessor.c
index 031151c..c9a40df 100644
--- a/tests/test_taskprocessor.c
+++ b/tests/test_taskprocessor.c
@@ -184,7 +184,7 @@
#define LOW_WATER_MARK 3
#define HIGH_WATER_MARK 6
struct task_data *task_data[(TEST_DATA_ARRAY_SIZE + 1)] = { 0 };
- int res;
+ int res = 0;
int i;
long queue_count;
unsigned int alert_level;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13036
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 17
Gerrit-Change-Id: I2994d8aab9307a8c2c7330584f287a27144a580c
Gerrit-Change-Number: 13036
Gerrit-PatchSet: 2
Gerrit-Owner: Christian Savinovich <csavinovich at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191011/a849947e/attachment-0001.html>
More information about the asterisk-code-review
mailing list