Revert "libbb: remove unnecessary variable in xmalloc_fgets"
The variable is in fact necessary.
commit 2da9724b56
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun Apr 1 17:05:35 2018 +0200
libbb: remove unnecessary variable in xmalloc_fgets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
270becc240
commit
0d598ab9f0
@ -47,7 +47,9 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end)
|
||||
/* Get line, including trailing \n if any */
|
||||
char* FAST_FUNC xmalloc_fgets(FILE *file)
|
||||
{
|
||||
return bb_get_chunk_from_file(file, NULL);
|
||||
int i;
|
||||
|
||||
return bb_get_chunk_from_file(file, &i);
|
||||
}
|
||||
/* Get line. Remove trailing \n */
|
||||
char* FAST_FUNC xmalloc_fgetline(FILE *file)
|
||||
|
Loading…
Reference in New Issue
Block a user