From a2a434d8a0d97419ac81643602613595105ae24f Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Thu, 23 Dec 2010 23:33:37 -0500 Subject: Initializing variables in test Addresses coverity issue 10048. Patch should apply to master and 0.1.x. --- collection/collection_ut.c | 10 +++++----- 1 file 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; -- cgit