Fix warning in join(1)
Spotted by Random832.
This commit is contained in:
parent
fdf9ab9b2d
commit
e52845281a
2
join.c
2
join.c
@ -263,7 +263,7 @@ addtospan(struct span *sp, FILE *fp, int reset)
|
|||||||
char *newl = NULL;
|
char *newl = NULL;
|
||||||
size_t len, size = 0;
|
size_t len, size = 0;
|
||||||
|
|
||||||
if ((len = getline(&newl, &size, fp)) == -1) {
|
if ((len = getline(&newl, &size, fp)) == (size_t)-1) {
|
||||||
if (ferror(fp))
|
if (ferror(fp))
|
||||||
eprintf("getline:");
|
eprintf("getline:");
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user