Initialize file descriptors to -1, not 0, in MachoWalker.

R=ivan.penkov@gmail.com

Review URL: https://breakpad.appspot.com/1174002

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1284 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
mark@chromium.org 2014-02-26 18:59:48 +00:00
parent 334b2c70f0
commit 3e76b4a74b

View File

@ -51,7 +51,7 @@ namespace MacFileUtilities {
MachoWalker::MachoWalker(const char *path, LoadCommandCallback callback,
void *context)
: file_(0),
: file_(-1),
memory_(NULL),
memory_size_(0),
callback_(callback),
@ -64,7 +64,7 @@ MachoWalker::MachoWalker(const char *path, LoadCommandCallback callback,
MachoWalker::MachoWalker(void *memory, size_t size,
LoadCommandCallback callback, void *context)
: file_(0),
: file_(-1),
memory_(memory),
memory_size_(size),
callback_(callback),