Gunnar Kudrjavets 4c9b0a0314 Initialize potentially uninitialized local variables
Compiling OpenSSL code with MSVC and /W4 results in a number of warnings.
One category of warnings is particularly interesting - C4701 (potentially
uninitialized local variable 'name' used). This warning pretty much means
that there's a code path which results in uninitialized variables being used
or returned. Depending on compiler, its options, OS, values in registers
and/or stack, the results can be nondeterministic. Cases like this are very
hard to debug so it's rational to fix these issues.

This patch contains a set of trivial fixes for all the C4701 warnings (just
initializing variables to 0 or NULL or appropriate error code) to make sure
that deterministic values will be returned from all the execution paths.

RT#3835

Signed-off-by: Matt Caswell <matt@openssl.org>

Matt's note: All of these appear to be bogus warnings, i.e. there isn't
actually a code path where an unitialised variable could be used - its just
that the compiler hasn't been able to figure that out from the logic. So
this commit is just about silencing spurious warnings.

Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-05-06 13:06:46 +01:00
..
2015-05-01 10:02:07 -04:00
2015-05-01 14:37:16 -04:00
2015-04-28 15:28:14 -04:00
2015-01-22 09:20:09 +00:00
2015-05-01 10:02:07 -04:00
2015-04-28 15:28:14 -04:00
2015-05-01 10:02:07 -04:00
2015-05-04 15:00:13 -04:00
2015-03-23 13:15:06 +00:00
2015-05-01 10:02:07 -04:00
2015-03-25 14:15:00 +00:00
2015-05-04 15:00:13 -04:00
2015-01-30 15:35:49 -05:00
2015-05-01 10:02:07 -04:00
2015-05-04 15:00:13 -04:00
2015-03-24 07:52:24 -04:00
2015-05-04 15:00:13 -04:00
2015-03-24 17:35:58 +00:00
2015-05-01 10:15:18 -04:00
2015-05-01 10:02:07 -04:00
2015-05-04 15:00:13 -04:00
2015-05-04 15:00:13 -04:00
2015-03-28 10:54:15 -04:00
2015-03-28 10:54:15 -04:00
2015-05-01 14:29:48 -04:00
2015-05-01 14:29:48 -04:00
2015-05-01 14:29:48 -04:00
2015-04-03 18:31:15 +01:00
2015-04-28 15:28:14 -04:00
2015-01-22 09:20:09 +00:00
2015-05-01 14:37:16 -04:00
2015-03-30 22:01:31 +01:00
2015-01-22 09:20:09 +00:00
2015-03-23 18:27:04 +00:00
2015-05-01 14:29:48 -04:00
2015-05-04 15:00:13 -04:00
2015-05-04 15:00:13 -04:00
2015-05-04 15:00:13 -04:00
2015-03-13 16:42:44 +00:00
2015-05-01 10:02:07 -04:00
2015-04-30 11:31:07 -04:00
2015-03-02 13:26:29 +00:00
2015-05-04 15:00:13 -04:00
2015-05-04 15:00:13 -04:00
2015-03-02 13:26:29 +00:00
2015-05-04 15:00:13 -04:00
2015-05-01 10:02:07 -04:00
2015-01-22 09:20:09 +00:00
2015-01-22 09:20:09 +00:00
2015-01-22 09:20:09 +00:00
2015-05-01 10:02:07 -04:00
2015-04-30 11:31:07 -04:00