Simplify hiding conditions

This commit is contained in:
topjohnwu
2018-06-17 05:16:52 +08:00
parent 4d5841332a
commit 838f3cc01e
2 changed files with 7 additions and 17 deletions

View File

@ -87,6 +87,8 @@ int check_data() {
/* All the string should be freed manually!! */
int file_to_vector(const char* filename, struct vector *v) {
if (access(filename, R_OK) != 0)
return 1;
char *line = NULL;
size_t len = 0;
ssize_t read;