From bdfefedfefb841091e73bd68703c932056401ad1 Mon Sep 17 00:00:00 2001 From: NightlyFox Date: Sat, 29 Sep 2018 18:35:44 -0500 Subject: [PATCH] removed comment and newlines --- common/menu-entry.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/menu-entry.c b/common/menu-entry.c index 0a60970..20a18a7 100644 --- a/common/menu-entry.c +++ b/common/menu-entry.c @@ -323,7 +323,7 @@ bool menuEntryLoad(menuEntry_s* me, const char* name, bool shortcut) { void menuEntryParseIcon(menuEntry_s* me) { size_t imagesize = 256*256*3; - unsigned char *imageptr = (unsigned char*)malloc(imagesize);//imageptr cannot be null + unsigned char *imageptr = (unsigned char*)malloc(imagesize); if (imageptr == NULL) return; @@ -345,8 +345,6 @@ void menuEntryParseIcon(menuEntry_s* me) { free(me->icon); me->icon = NULL; - - me->icon_gfx = (uint8_t*)malloc(imagesize); if (me->icon_gfx == NULL) return;