Fix few clang analyzer warnings (dotnet/coreclr#11185)
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 26 Apr 2017 08:52:35 +0000 (01:52 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 08:52:35 +0000 (01:52 -0700)
commitc043caa29992fb371c3da48aa59631cc9e31e134
tree7a17ab6c74930b15acca784a04464249fdfa1e01
parent9a5c712b0b85dc02200a78b9ea5a282d6cc19698
Fix few clang analyzer warnings (dotnet/coreclr#11185)

This change fixes two issues reported by the clang analyzer. In both cases, uninitialized
variable value was used in an error code path.

Commit migrated from https://github.com/dotnet/coreclr/commit/3011ab330532cbd6f82da9b8ae5d1d28c324cc06
src/coreclr/src/pal/src/file/disk.cpp
src/coreclr/src/pal/src/file/file.cpp