Skip to content

Commit a1cbffd

Browse files
Fix CodeQL CUDA weight name check
1 parent 1eeb466 commit a1cbffd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extension/src/inference/cuda/decoder_graph/device/core/cuda_decoder_graph_executor_device_helpers.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ static zend_result king_inference_cuda_decoder_graph_executor_linear_shape(
522522
error,
523523
sizeof(error),
524524
"cuda_decoder_graph_linear_quantized_shape_invalid weight=%s input_width=%lu cols=%lu rows=%lu rank=%lu type=%lu",
525-
weight_name != NULL && *weight_name != NULL ? ZSTR_VAL(*weight_name) : "",
525+
*weight_name != NULL ? ZSTR_VAL(*weight_name) : "",
526526
(unsigned long) input_width,
527527
(unsigned long) cols,
528528
(unsigned long) tensor_rows,

0 commit comments

Comments
 (0)