diff options
author | Dmitri Pal <dpal@redhat.com> | 2010-12-23 23:33:37 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-01-03 13:54:27 -0500 |
commit | 93bfa371068f77131e5026c1a576af33e06c01d8 (patch) | |
tree | 27104905b5e6f13916358218ceaf171b9e72d4b2 | |
parent | c2b9c5e965c2c62646a10c63f6c627a9e09f8584 (diff) | |
download | ding-libs2-93bfa371068f77131e5026c1a576af33e06c01d8.tar.gz ding-libs2-93bfa371068f77131e5026c1a576af33e06c01d8.tar.xz ding-libs2-93bfa371068f77131e5026c1a576af33e06c01d8.zip |
Initializing variables in test
Addresses coverity issue 10048.
Patch should apply to master and 0.1.x.
-rw-r--r-- | collection/collection_ut.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/collection/collection_ut.c b/collection/collection_ut.c index 92d9d0c..f669fa0 100644 --- a/collection/collection_ut.c +++ b/collection/collection_ut.c @@ -623,12 +623,12 @@ int mixed_collection_test(void) int iterator_test(void) { - struct collection_item *peer; - struct collection_item *initial; + struct collection_item *peer = NULL; + struct collection_item *initial = NULL; - struct collection_item *socket1; - struct collection_item *socket2; - struct collection_item *socket3; + struct collection_item *socket1 = NULL; + struct collection_item *socket2 = NULL; + struct collection_item *socket3 = NULL; struct collection_iterator *iterator = NULL; int error = EOK; struct collection_item *item = NULL; |