diff options
author | Alexander Shiyan <eagle.alexander923@gmail.com> | 2022-06-09 10:26:29 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-10 09:50:46 +0200 |
commit | 85369d3b8d4ae31cacd77decbe5bcf01a90aeb3f (patch) | |
tree | 9efbb4569edbe5c3501ccdea2c16ebffbdb72682 /lib/libfile.c | |
parent | 6acc6358ce6815220300d67b6b9e41a608480e16 (diff) | |
download | barebox-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 'lib/libfile.c')
-rw-r--r-- | lib/libfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libfile.c b/lib/libfile.c index 1f533133c5..3b7985fbca 100644 --- a/lib/libfile.c +++ b/lib/libfile.c @@ -162,7 +162,6 @@ char *read_file_line(const char *fmt, ...) va_list args; char *filename; char *buf, *line = NULL; - size_t size; int ret; struct stat s; @@ -177,7 +176,7 @@ char *read_file_line(const char *fmt, ...) if (s.st_size > 1024) goto out; - buf = read_file(filename, &size); + buf = read_file(filename, NULL); if (!buf) goto out; |