Skip to content
Snippets Groups Projects
Commit ce3b2a41 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fc_sort: cleanup warnings caught by clang tidy / static analyzer."

parents 626edc75 66dd3ca6
Branches
Tags
No related merge requests found
...@@ -315,7 +315,7 @@ int main(int argc, char *argv[]) ...@@ -315,7 +315,7 @@ int main(int argc, char *argv[])
{ {
int lines; int lines;
size_t start, finish, regex_len, context_len; size_t start, finish, regex_len, context_len;
size_t line_len, buf_len, i, j; size_t line_len, buf_len, i;
char *input_name, *output_name, *line_buf; char *input_name, *output_name, *line_buf;
file_context_node_t *temp; file_context_node_t *temp;
...@@ -336,7 +336,7 @@ int main(int argc, char *argv[]) ...@@ -336,7 +336,7 @@ int main(int argc, char *argv[])
input_name = argv[1]; input_name = argv[1];
output_name = (argc >= 3) ? argv[2] : NULL; output_name = (argc >= 3) ? argv[2] : NULL;
i = j = lines = 0; lines = 0;
/* Open the input file. */ /* Open the input file. */
if (!(in_file = fopen(input_name, "r"))) { if (!(in_file = fopen(input_name, "r"))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment