aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2018-04-01 17:05:35 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-01 19:45:36 +0200
commit2da9724b56169f00bd7fb6b9a11c9409a7620981 (patch)
treec78d0dabd4f4fc7906182e0c4d9edbf13a166b5c /libbb
parentbb6f573ad204887e2447a40628efd98f334fb520 (diff)
downloadbusybox-2da9724b56169f00bd7fb6b9a11c9409a7620981.tar.gz
libbb: remove unnecessary variable in xmalloc_fgets
Signed-off-by: Quentin Rameau <quinq@fifth.space> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/get_line_from_file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
index cc61a9265..941ea12b5 100644
--- a/libbb/get_line_from_file.c
+++ b/libbb/get_line_from_file.c
@@ -44,9 +44,7 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end)
/* 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)