Closed JEnoch closed 1 month ago
By default in all options zenoh-c set the encoding to the EMPTY encoding. Thus the calls setting encoding to z_encoding(Z_ENCODING_PREFIX_EMPTY, NULL); are useless and can be removed.
zenoh-c
encoding
z_encoding(Z_ENCODING_PREFIX_EMPTY, NULL);
Moreover this fixes #177 which is caused by an issue passing NULL to z_encoding() (https://github.com/eclipse-zenoh/zenoh-c/issues/370).
NULL
z_encoding()
@hwoithe can you confirm if these changes fixes the issue you encounter?
This does fix the issue for me. Thank you!
By default in all options
zenoh-c
set theencoding
to the EMPTY encoding. Thus the calls setting encoding toz_encoding(Z_ENCODING_PREFIX_EMPTY, NULL);
are useless and can be removed.Moreover this fixes #177 which is caused by an issue passing
NULL
toz_encoding()
(https://github.com/eclipse-zenoh/zenoh-c/issues/370).