Skip to content

Commit

Permalink
fix: revert encoding_clear changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jul 3, 2024
1 parent 2938a16 commit 9461d3e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/net/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ _z_encoding_t _z_encoding_wrap(uint16_t id, const char *schema) {

_z_encoding_t _z_encoding_null(void) { return _z_encoding_wrap(_Z_ENCODING_ID_DEFAULT, NULL); }

void _z_encoding_clear(_z_encoding_t *encoding) {
if (_z_string_check(&encoding->schema)) {
_z_string_clear(&encoding->schema);
}
}
void _z_encoding_clear(_z_encoding_t *encoding) { _z_string_clear(&encoding->schema); }

_Bool _z_encoding_check(const _z_encoding_t *encoding) {
return ((encoding->id != _Z_ENCODING_ID_DEFAULT) || _z_string_check(&encoding->schema));
Expand Down

0 comments on commit 9461d3e

Please sign in to comment.