Skip to content

Commit

Permalink
Fix segfault because of invalid structure field order
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed May 20, 2023
1 parent 585b202 commit 14205ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "relm"
readme = "README.adoc"
repository = "https://github.com/antoyo/relm"
version = "0.24.0"
version = "0.24.1"
edition = "2018"

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/core/source.rs
Expand Up @@ -36,6 +36,7 @@ pub trait SourceFuncs {
fn prepare(&self) -> (bool, Option<u32>);
}

#[repr(C)]
struct SourceData<T> {
_source: GSource,
funcs: Box<GSourceFuncs>,
Expand Down

0 comments on commit 14205ec

Please sign in to comment.