From 44a9049e2af5a0ff58ff0bccfcb71af4cc303518 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 18 Apr 2023 13:56:22 -0400 Subject: Rust API : Fix call to BNCreateNamedType --- rust/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/types.rs b/rust/src/types.rs index 00c274b7..8a7a51e1 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -1857,7 +1857,7 @@ impl NamedTypeReference { /// TODO : Check with Peter about what a better description would be pub fn new(type_class: NamedTypeReferenceClass, mut name: QualifiedName) -> Self { Self { - handle: unsafe { BNCreateNamedType(type_class, "".as_ptr() as _, &mut name.0) }, + handle: unsafe { BNCreateNamedType(type_class, ptr::null() as *const _, &mut name.0) }, } } -- cgit v1.3.1