summaryrefslogtreecommitdiff
path: root/rbutil/sansapatcher
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/sansapatcher
parentf4943b90e69e75cc2301238969520914553d7ae5 (diff)
downloadrockbox-b22516f995ef4a448251b883b0737d4aa0abdb84.tar.gz
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/sansapatcher')
-rw-r--r--rbutil/sansapatcher/sansapatcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/sansapatcher/sansapatcher.c b/rbutil/sansapatcher/sansapatcher.c
index 8d3191901a..015e5cbaf2 100644
--- a/rbutil/sansapatcher/sansapatcher.c
+++ b/rbutil/sansapatcher/sansapatcher.c
@@ -47,7 +47,7 @@ int sansa_verbose = 0;
47 and initialise it with sansa_alloc_buf() in main(). 47 and initialise it with sansa_alloc_buf() in main().
48*/ 48*/
49 49
50unsigned char* sansa_sectorbuf; 50unsigned char* sansa_sectorbuf = NULL;
51 51
52static off_t filesize(int fd) { 52static off_t filesize(int fd) {
53 struct stat buf; 53 struct stat buf;