Sfoglia il codice sorgente

repo: fix potential null pointer dereference in mirror sync (#8065)

Neptunium93 2 settimane fa
parent
commit
3666718ec5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      internal/database/mirror.go

+ 1 - 1
internal/database/mirror.go

@@ -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
 		}