Skip to content

Commit

Permalink
Fix RelData nil pointer deref
Browse files Browse the repository at this point in the history
  • Loading branch information
2TspSalt committed Nov 22, 2024
1 parent c3048c0 commit 8046066
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/manga.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ func (m *Manga) RelData() (rd *RelData) {
return m.relData
}

rd = &RelData{}

for _, rel := range m.Relationships {
switch rel.Type {
case "author":
Expand Down

0 comments on commit 8046066

Please sign in to comment.