mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 00:35:41 +01:00
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:
parent
334b2c70f0
commit
3e76b4a74b
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user