summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/filetypes.c2
-rw-r--r--apps/plugins/pictureflow/pictureflow.c6
-rw-r--r--apps/scrobbler.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 942ff329fe..8f2e91222a 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -344,7 +344,7 @@ void filetype_init(void)
344 344
345 strdup_bufsize = filesize(fd); 345 strdup_bufsize = filesize(fd);
346 strdup_handle = core_alloc_ex("filetypes", strdup_bufsize, &ops); 346 strdup_handle = core_alloc_ex("filetypes", strdup_bufsize, &ops);
347 if (strdup_handle <= 0) 347 if (strdup_handle < 0)
348 return; 348 return;
349 read_builtin_types(); 349 read_builtin_types();
350 read_config(fd); 350 read_config(fd);
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index c13aca1a95..a572586886 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -1520,9 +1520,11 @@ int read_pfraw(char* filename, int prio)
1520 sizeof( pix_t ) * bmph.width * bmph.height; 1520 sizeof( pix_t ) * bmph.width * bmph.height;
1521 1521
1522 int hid; 1522 int hid;
1523 while (!(hid = rb->buflib_alloc(&buf_ctx, size)) && free_slide_prio(prio)); 1523 do {
1524 hid = rb->buflib_alloc(&buf_ctx, size);
1525 } while (hid < 0 && free_slide_prio(prio));
1524 1526
1525 if (!hid) { 1527 if (hid < 0) {
1526 rb->close( fh ); 1528 rb->close( fh );
1527 return 0; 1529 return 0;
1528 } 1530 }
diff --git a/apps/scrobbler.c b/apps/scrobbler.c
index 78414f3d88..06c957cd6c 100644
--- a/apps/scrobbler.c
+++ b/apps/scrobbler.c
@@ -255,7 +255,7 @@ int scrobbler_init(void)
255 return -1; 255 return -1;
256 256
257 scrobbler_cache = core_alloc("scrobbler", SCROBBLER_MAX_CACHE*SCROBBLER_CACHE_LEN); 257 scrobbler_cache = core_alloc("scrobbler", SCROBBLER_MAX_CACHE*SCROBBLER_CACHE_LEN);
258 if (scrobbler_cache <= 0) 258 if (scrobbler_cache < 0)
259 { 259 {
260 logf("SCROOBLER: OOM"); 260 logf("SCROOBLER: OOM");
261 return -1; 261 return -1;