summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2010-12-23 23:33:37 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-03 13:51:37 -0500
commita2a434d8a0d97419ac81643602613595105ae24f (patch)
tree5d99de6ae1637146b4fe200bb1f3fdb4835e958f
parent95453a142af530a8ecfbe6ec39ce4a8cb5670d25 (diff)
downloadding-libs-a2a434d8a0d97419ac81643602613595105ae24f.tar.gz
ding-libs-a2a434d8a0d97419ac81643602613595105ae24f.tar.xz
ding-libs-a2a434d8a0d97419ac81643602613595105ae24f.zip
Initializing variables in test
Addresses coverity issue 10048. Patch should apply to master and 0.1.x.
-rw-r--r--collection/collection_ut.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/collection/collection_ut.c b/collection/collection_ut.c
index 2e4ead5..e11b0aa 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;