Skip to content

Commit 18a9367

Browse files
authored
set nil as the initial value of the struct reference type fields(part 2) (vlang#259)
1 parent 95272c2 commit 18a9367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repo.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct Repo {
2525
latest_update_hash string @[skip]
2626
latest_activity time.Time @[skip]
2727
mut:
28-
git_repo &git.Repo @[skip] // libgit wrapper repo
28+
git_repo &git.Repo = unsafe { nil } @[skip] // libgit wrapper repo
2929
webhook_secret string
3030
tags_count int
3131
nr_open_issues int @[orm: 'open_issues_count']

0 commit comments

Comments
 (0)