Save errno for logging before potentially overwriting it.
commitabb786b1feaabd3318a436fac1245d978581fad1
authordgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Jun 2013 04:01:53 +0000 (26 04:01 +0000)
committerdgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Jun 2013 04:01:53 +0000 (26 04:01 +0000)
treed505f70484ad6b41ad4773aa22283047e985e268
parent4dc8154d0bf3c318eaa46f4c92962d0b1b371526
Save errno for logging before potentially overwriting it.

There are a few places in ChromiumEnv where errno is written to, then a
line of code runs, then errno is logged. That intermediate line may have
overwritten errno, so save it before logging it.

Review URL: https://chromiumcodereview.appspot.com/17756002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208610 0039d316-1c4b-4281-b951-d872f2087c98
third_party/leveldatabase/env_chromium.cc