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

Use a const pointer for the slice returned from g_unix_socket_address_get_path() #139

Merged
merged 1 commit into from Jul 23, 2018

Conversation

Projects
None yet
2 participants
@sdroege
Member

sdroege commented Jul 23, 2018

And never pass NULL to slice::from_raw_part(), it's undefined behaviour

Use a const pointer for the slice returned from g_unix_socket_address…
…_get_path()

And never pass NULL to slice::from_raw_part(), it's undefined behaviour

@sdroege sdroege changed the title from Correctly use c_char instead of u8/i8 for g_unix_socket_address_new_with_type() to Use a const pointer for the slice returned from g_unix_socket_address_get_path() Jul 23, 2018

@GuillaumeGomez

This comment has been minimized.

Show comment
Hide comment
@GuillaumeGomez

GuillaumeGomez Jul 23, 2018

Member

Thanks!

Member

GuillaumeGomez commented Jul 23, 2018

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 5fe958a into gtk-rs:master Jul 23, 2018

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment