mirror of
https://github.com/gogs/gogs.git
synced 2025-12-16 05:09:59 +01:00
repo: fix potential null pointer dereference in mirror sync (#8065)
This commit is contained in:
@@ -332,7 +332,7 @@ func SyncMirrors() {
|
||||
|
||||
m, err := GetMirrorByRepoID(com.StrTo(repoID).MustInt64())
|
||||
if err != nil {
|
||||
log.Error("GetMirrorByRepoID [%d]: %v", m.RepoID, err)
|
||||
log.Error("GetMirrorByRepoID [%v]: %v", repoID, err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user