Skip to content

Commit 65745b0

Browse files
committed
Fix undefined behavior in llava clip
1 parent 202e554 commit 65745b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp/llava/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ struct clip_ctx {
545545
ggml_backend_t backend = NULL;
546546
ggml_gallocr_t compute_alloc = NULL;
547547

548-
struct clip_image_size * load_image_size;
548+
struct clip_image_size * load_image_size = NULL;
549549
};
550550

551551
static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32_batch * imgs, struct clip_image_size * load_image_size, bool is_inf = false) {

0 commit comments

Comments
 (0)