diff --git a/rsfbclient-native/src/xsqlda.rs b/rsfbclient-native/src/xsqlda.rs index b22a2b0..5aad50a 100644 --- a/rsfbclient-native/src/xsqlda.rs +++ b/rsfbclient-native/src/xsqlda.rs @@ -36,7 +36,7 @@ impl XSqlDa { /// Returns a mutable reference to a XSQLVAR pub fn get_xsqlvar_mut(&mut self, col: usize) -> Option<&mut ibase::XSQLVAR> { if col < self.len as usize { - let xsqlvar = unsafe { self.ptr.as_mut().sqlvar.get_unchecked_mut(col as usize) }; + let xsqlvar = unsafe { self.ptr.as_mut().sqlvar.get_mut(col as usize).unwrap() }; Some(xsqlvar) } else {