libbb: remove unnecessary variable in xmalloc_fgets
Signed-off-by: Quentin Rameau <quinq@fifth.space>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
index cc61a92..941ea12 100644
--- a/libbb/get_line_from_file.c
+++ b/libbb/get_line_from_file.c
@@ -44,9 +44,7 @@
/* Get line, including trailing \n if any */
char* FAST_FUNC xmalloc_fgets(FILE *file)
{
- int i;
-
- return bb_get_chunk_from_file(file, &i);
+ return bb_get_chunk_from_file(file, NULL);
}
/* Get line. Remove trailing \n */
char* FAST_FUNC xmalloc_fgetline(FILE *file)