summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher/ipodpatcher.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-06-08 15:30:14 +0000
committerDave Chapman <dave@dchapman.com>2007-06-08 15:30:14 +0000
commit09b247fef9242d5f17ef9e8395f04ff1282b9292 (patch)
treebb4fda1641251f195fe3d8318a3dc0888516a63c /rbutil/ipodpatcher/ipodpatcher.c
parent6e314e5e985ff1c644fc220041b95af0f0aa1065 (diff)
downloadrockbox-09b247fef9242d5f17ef9e8395f04ff1282b9292.tar.gz
rockbox-09b247fef9242d5f17ef9e8395f04ff1282b9292.zip
Don't just display an error message, abort.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13594 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.c')
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.c1
1 files changed, 1 insertions, 0 deletions
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)
526 bootloader_buf = malloc(length); 526 bootloader_buf = malloc(length);
527 if (bootloader_buf == NULL) { 527 if (bootloader_buf == NULL) {
528 fprintf(stderr,"[ERR] Can not allocate memory for bootloader\n"); 528 fprintf(stderr,"[ERR] Can not allocate memory for bootloader\n");
529 return -1;
529 } 530 }
530 /* Now read our bootloader - we need to check it before modifying the partition*/ 531 /* Now read our bootloader - we need to check it before modifying the partition*/
531 n = read(infile,bootloader_buf,length); 532 n = read(infile,bootloader_buf,length);