cut: "orig_line" is redundant, remove it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
478ac90f2c
commit
808155ebf3
1 changed files with 1 additions and 2 deletions
|
@ -101,7 +101,6 @@ static void cut_file(FILE *file, const char *delim, const char *odelim,
|
|||
|
||||
/* set up a list so we can keep track of what's been printed */
|
||||
int linelen = strlen(line);
|
||||
char *orig_line = line;
|
||||
unsigned cl_pos = 0;
|
||||
|
||||
/* cut based on chars/bytes XXX: only works when sizeof(char) == byte */
|
||||
|
@ -216,7 +215,7 @@ static void cut_file(FILE *file, const char *delim, const char *odelim,
|
|||
putchar('\n');
|
||||
next_line:
|
||||
linenum++;
|
||||
free(orig_line);
|
||||
free(line);
|
||||
} /* while (got line) */
|
||||
#undef opt_REGEX
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue