Explorar el Código

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

Neptunium93 hace 2 meses
padre
commit
33990972fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      internal/db/mirror.go

+ 1 - 1
internal/db/mirror.go

@@ -324,7 +324,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
 		}