summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAutomerge script <automerge@asterisk.org>2012-11-19 02:19:08 +0000
committerAutomerge script <automerge@asterisk.org>2012-11-19 02:19:08 +0000
commit558c108b926c960ef314225474ae57157244ea43 (patch)
treee0c9669ceb7a9f3601088a9994ea37164c9d6ac4 /tests
parent0f95c6b380fc24e4e4b29118c4e21363a0481fc9 (diff)
Merged revisions 376457 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk ........ r376457 | mjordan | 2012-11-18 20:14:54 -0600 (Sun, 18 Nov 2012) | 7 lines Fix uninitialized in this function error With some versions of gcc, n_buckets will be flagged as being uninitialized before use. While its technically impossible (since the switch statement, even without a default, accounts for all possibilities), we'll initialize the variable to 0 anyway. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests')
-rw-r--r--tests/test_astobj2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_astobj2.c b/tests/test_astobj2.c
index 95d7e753d..0fdd0bd2d 100644
--- a/tests/test_astobj2.c
+++ b/tests/test_astobj2.c
@@ -424,7 +424,7 @@ static int astobj2_test_1_helper(int tst_num, enum test_container_type type, int
struct ao2_iterator *mult_it;
struct test_obj *obj;
ao2_callback_fn *cmp_fn;
- int n_buckets;
+ int n_buckets = 0;
int increment = 0;
int destructor_count = 0;
int count;