summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-05-01 21:35:06 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-05-01 21:35:06 +0000
commitb22516f995ef4a448251b883b0737d4aa0abdb84 (patch)
treee022040257aaf8f7e9fbc4b004acdea7e1d55ca9 /rbutil/ipodpatcher
parentf4943b90e69e75cc2301238969520914553d7ae5 (diff)
downloadrockbox-b22516f995ef4a448251b883b0737d4aa0abdb84.tar.gz
rockbox-b22516f995ef4a448251b883b0737d4aa0abdb84.tar.bz2
rockbox-b22516f995ef4a448251b883b0737d4aa0abdb84.zip
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')
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.c2
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 = "{{~~ /-----\\ "\