bc: do not append duplicate NUL, reduce indentation in bc_read_line()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2018-12-13 19:28:41 +01:00
parent 82ea67fbfa
commit 915c72b273

View File

@ -1407,9 +1407,8 @@ static void bc_read_line(BcVec *vec)
vec->len = len; vec->len = len;
goto again; goto again;
} }
}
bc_vec_pushZeroByte(vec); bc_vec_pushZeroByte(vec);
}
} }
static char* bc_read_file(const char *path) static char* bc_read_file(const char *path)