From b22516f995ef4a448251b883b0737d4aa0abdb84 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Fri, 1 May 2009 21:35:06 +0000 Subject: 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 --- rbutil/ipodpatcher/ipodpatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rbutil/ipodpatcher/ipodpatcher.c') 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 = "{{~~ /-----\\ "\ -- cgit v1.2.3