From 09b247fef9242d5f17ef9e8395f04ff1282b9292 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 8 Jun 2007 15:30:14 +0000 Subject: Don't just display an error message, abort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13594 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/ipodpatcher/ipodpatcher.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rbutil/ipodpatcher/ipodpatcher.c') diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c index 96c022bcb7..1cc3343244 100644 --- a/rbutil/ipodpatcher/ipodpatcher.c +++ b/rbutil/ipodpatcher/ipodpatcher.c @@ -526,6 +526,7 @@ int add_bootloader(struct ipod_t* ipod, char* filename, int type) bootloader_buf = malloc(length); if (bootloader_buf == NULL) { fprintf(stderr,"[ERR] Can not allocate memory for bootloader\n"); + return -1; } /* Now read our bootloader - we need to check it before modifying the partition*/ n = read(infile,bootloader_buf,length); -- cgit