summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-03-04 09:16:13 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2021-03-04 14:25:58 +0000
commita4a5f5f33fd79ed625c280ac779f41d547846fe8 (patch)
tree2087bb4fbb786720b6d0ceb4ff8d65b66645782c /firmware
parent2628155fc9947dcf463938553f057c39ccc2227a (diff)
downloadrockbox-a4a5f5f33fd79ed625c280ac779f41d547846fe8.tar.gz
rockbox-a4a5f5f33fd79ed625c280ac779f41d547846fe8.zip
Check core max allocations for valid handle
fix rolo warnings Change-Id: Ia2c669a5517aec54e5b2c0dc5934c88a4f49f2a9
Diffstat (limited to 'firmware')
-rw-r--r--firmware/rolo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index f4db832b2b..f1bcd0718e 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -244,7 +244,7 @@ int rolo_load(const char* filename)
244 rolo_handle = core_alloc_maximum("rolo", &filebuf_size, NULL); 244 rolo_handle = core_alloc_maximum("rolo", &filebuf_size, NULL);
245 if (rolo_handle < 0) 245 if (rolo_handle < 0)
246 { 246 {
247 splash(HZ, "Rolo Failed - OOM"); 247 rolo_error("OOM");
248 return -1; 248 return -1;
249 } 249 }
250 250