WARNING: eliminate warnings: [-Wsometimes-uninitialized]
authorGregg Reynolds <reynolds-gregg@norc.org>
Sat, 11 Jun 2016 13:08:55 +0000 (08:08 -0500)
committerHabib Virji <habib.virji@samsung.com>
Wed, 15 Jun 2016 15:23:10 +0000 (15:23 +0000)
commitfb7b7a81d5fa045caf1c879fa49cef951dfeaae7
tree05beb3e72fe8824720fde19fc8e908b5c9da5430
parent7ae7a2bec53e08da0c7ba7941dabf0d7e8e04c5e
WARNING: eliminate warnings: [-Wsometimes-uninitialized]

The warning is caused by decls "TWEntry* entry = NULL;" coming
after tests that call "goto exit;" where "entry" is used.
the decl in front of the conditionals removes the warning.

Also added NULL test on "entry" to avoid unecessary calls
to TWDeleteEntry.

Change-Id: I0d7069e2497563a2c5378789c26acfdd3c48d89d
Signed-off-by: Gregg Reynolds <reynolds-gregg@norc.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8599
Reviewed-by: George Nash <george.nash@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
plugins/zigbee_wrapper/telegesis_wrapper/src/telegesis_wrapper.c