Skip to content

Commit 95272c2

Browse files
authored
set nil as the initial value of the struct reference type fields (vlang#258)
1 parent 56d5a3b commit 95272c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/libgit.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn shutdown() {
9191
}
9292

9393
pub struct Repo {
94-
obj &C.git_repository
94+
obj &C.git_repository = unsafe { nil }
9595

9696
path string
9797
}

0 commit comments

Comments
 (0)