Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove needless manipulation of out in do_xlats() #5291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/bin/unit_test_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ static bool do_xlats(fr_event_list_t *el, request_t *request, char const *filena
char output_buff[8192];
char unescaped[sizeof(output_buff)];
fr_sbuff_t line;
fr_sbuff_t out = FR_SBUFF_OUT(output_buff, sizeof(output_buff));
fr_sbuff_t out;

static fr_sbuff_escape_rules_t unprintables = {
.name = "unprintables",
Expand All @@ -429,7 +429,6 @@ static bool do_xlats(fr_event_list_t *el, request_t *request, char const *filena
lineno++;

line = FR_SBUFF_IN(line_buff, sizeof(line_buff));
fr_sbuff_set_to_start(&out);
if (!fr_sbuff_adv_to_chr(&line, SIZE_MAX, '\n')) {
if (!feof(fp)) {
fprintf(stderr, "%s[%d] Line too long\n", filename, lineno);
Expand Down