Skip to content

Commit

Permalink
set nil as the initial value of the struct reference type fields
Browse files Browse the repository at this point in the history
  • Loading branch information
shove70 committed Nov 20, 2023
1 parent 56d5a3b commit 9f6465c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/libgit.v
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn shutdown() {
}

pub struct Repo {
obj &C.git_repository
obj &C.git_repository = unsafe { nil }

path string
}
Expand Down

0 comments on commit 9f6465c

Please sign in to comment.