summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r--apps/plugins/rockboy/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/rockboy/loader.c b/apps/plugins/rockboy/loader.c
index 0dbd0b4591..bdccb2e7e1 100644
--- a/apps/plugins/rockboy/loader.c
+++ b/apps/plugins/rockboy/loader.c
@@ -225,7 +225,7 @@ int sram_load(void)
int fd;
char meow[500];
- if (!mbc.batt || !sramfile || !*sramfile) return -1;
+ if (!mbc.batt || !*sramfile) return -1;
/* Consider sram loaded at this point, even if file doesn't exist */
ram.loaded = 1;
@@ -249,7 +249,7 @@ int sram_save(void)
char meow[500];
/* If we crash before we ever loaded sram, DO NOT SAVE! */
- if (!mbc.batt || !sramfile || !ram.loaded || !mbc.ramsize)
+ if (!mbc.batt || !ram.loaded || !mbc.ramsize)
return -1;
fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC);
if (fd<0) return -1;