Skip to content

Commit

Permalink
PROTON-2785: Fix pn_data_clear not clearing error
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickTaibel authored and astitcher committed Jul 30, 2024
1 parent 9fdc19c commit 0095a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c/src/core/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ void pn_data_clear(pn_data_t *data)
data->current = 0;
data->base_parent = 0;
data->base_current = 0;
pn_error_clear(data->error);
if (data->buf) pn_buffer_clear(data->buf);
}
}
Expand Down

0 comments on commit 0095a69

Please sign in to comment.