mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Don't just display an error message, abort.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13594 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6e314e5e98
commit
09b247fef9
1 changed files with 1 additions and 0 deletions
|
|
@ -526,6 +526,7 @@ int add_bootloader(struct ipod_t* ipod, char* filename, int type)
|
||||||
bootloader_buf = malloc(length);
|
bootloader_buf = malloc(length);
|
||||||
if (bootloader_buf == NULL) {
|
if (bootloader_buf == NULL) {
|
||||||
fprintf(stderr,"[ERR] Can not allocate memory for bootloader\n");
|
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*/
|
/* Now read our bootloader - we need to check it before modifying the partition*/
|
||||||
n = read(infile,bootloader_buf,length);
|
n = read(infile,bootloader_buf,length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue