diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-05-01 21:35:06 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-05-01 21:35:06 +0000 |
commit | b22516f995ef4a448251b883b0737d4aa0abdb84 (patch) | |
tree | e022040257aaf8f7e9fbc4b004acdea7e1d55ca9 /rbutil/ipodpatcher/ipodpatcher.c | |
parent | f4943b90e69e75cc2301238969520914553d7ae5 (diff) |
Make sure the global buffers for ipodpatcher and sansapatcher get allocated and freed only once. Fixes segfaults when the bootloader install class was instanciated multiple times.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20835 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.c')
-rw-r--r-- | rbutil/ipodpatcher/ipodpatcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c index 73467dea34..dd650506a1 100644 --- a/rbutil/ipodpatcher/ipodpatcher.c +++ b/rbutil/ipodpatcher/ipodpatcher.c @@ -50,7 +50,7 @@ int ipod_verbose = 0; -unsigned char* ipod_sectorbuf; +unsigned char* ipod_sectorbuf = NULL; /* The following string appears at the start of the firmware partition */ static const char *apple_stop_sign = "{{~~ /-----\\ "\ |