[IOT-2539] Remove maybe-uninitialized warning 83/22083/5
authorGeorge Nash <george.nash@intel.com>
Tue, 1 Aug 2017 18:21:09 +0000 (11:21 -0700)
committerMats Wichmann <mats@linux.com>
Wed, 27 Sep 2017 14:39:37 +0000 (14:39 +0000)
commitfaaf7fc4d4ccdb871097a11d19c1de1ee2cd35ec
tree1543cd1050c801b48911c9d31f1fe59fe50c1e24
parentaacc7b950cefa70866f70c7e879e23b301207f9f
[IOT-2539] Remove maybe-uninitialized warning

The compiler was indicating that the request.len and
request.bytes maybe used uninitialized. Best I can
tell the OCByteString is initilaized in the GenerateCSR
function. The compiler can not tell that it is
initilaized so it is zero initialized at creation.

Bug: https://jira.iotivity.org/browse/IOT-2539
Change-Id: I19dd9818b1485ec0da64b48dc2510c8e939c6c0f
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21703
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
(cherry picked from commit 88ce2816c8cca2f775927a03b2843446cc743e6d)
resource/csdk/security/provisioning/src/cloud/csr.c