diff options
author | Quentin Rameau | 2018-04-01 17:05:35 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-04-01 19:45:36 +0200 |
commit | 2da9724b56169f00bd7fb6b9a11c9409a7620981 (patch) | |
tree | c78d0dabd4f4fc7906182e0c4d9edbf13a166b5c /libbb | |
parent | bb6f573ad204887e2447a40628efd98f334fb520 (diff) | |
download | busybox-2da9724b56169f00bd7fb6b9a11c9409a7620981.zip busybox-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 @@ 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) |