We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a8dd1 commit 0cc42f5Copy full SHA for 0cc42f5
crates/shiguredo_nvcodec/src/lib.rs
@@ -233,6 +233,10 @@ impl CudaLibrary {
233
// NOTE: 無限再帰を避けるために、ここでは Error::check_cuda() は使わない
234
return None;
235
}
236
+ if error_name.is_null() {
237
+ // ここには来ないはずだけど保守的に NULL チェックを入れておく
238
+ return None;
239
+ }
240
241
let error_str = std::ffi::CStr::from_ptr(error_name as *const i8)
242
.to_string_lossy()
@@ -253,6 +257,10 @@ impl CudaLibrary {
253
257
254
258
255
259
260
+ if error_msg.is_null() {
261
262
263
256
264
265
let error_str = std::ffi::CStr::from_ptr(error_msg as *const i8)
266
0 commit comments