summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAlexander Shiyan <eagle.alexander923@gmail.com>2022-06-09 10:26:29 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-10 09:50:46 +0200
commit85369d3b8d4ae31cacd77decbe5bcf01a90aeb3f (patch)
tree9efbb4569edbe5c3501ccdea2c16ebffbdb72682 /common
parent6acc6358ce6815220300d67b6b9e41a608480e16 (diff)
downloadbarebox-85369d3b8d4ae31cacd77decbe5bcf01a90aeb3f.tar.gz
barebox-85369d3b8d4ae31cacd77decbe5bcf01a90aeb3f.tar.xz
read_file: Pass NULL for the size parameter if the return value is not used
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Link: https://lore.barebox.org/20220609072629.15723-1-eagle.alexander923@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/menutree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/menutree.c b/common/menutree.c
index 9a14005ea2..7fa835a7fe 100644
--- a/common/menutree.c
+++ b/common/menutree.c
@@ -87,7 +87,6 @@ int menutree(const char *path, int toplevel)
glob_t g = {};
int i;
char *globpath, *display;
- size_t size;
menu = menu_alloc();
@@ -100,7 +99,7 @@ int menutree(const char *path, int toplevel)
}
globpath = basprintf("%s/title", path);
- display = read_file(globpath, &size);
+ display = read_file(globpath, NULL);
free(globpath);
if (!display) {
eprintf("no title found in %s/title\n", path);