all repos — searchix @ 573e24bf30e5e8b8f5b82e848258b70eea9f3a74

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: nil pointer deference in nixpkgs-channel fetcher
Alan Pearce alan@alanpearce.eu
Mon, 17 Mar 2025 10:23:33 +0100
commit

573e24bf30e5e8b8f5b82e848258b70eea9f3a74

parent

d489e08b7685c69b3930f6ea06695449dfaeda9f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M internal/fetcher/nixpkgs-channel.gointernal/fetcher/nixpkgs-channel.go
@@ -47,6 +47,7 @@ func (i *NixpkgsChannelFetcher) FetchIfNeeded( 	ctx context.Context,
 	sourceMeta *index.SourceMeta,
 ) (f *FetchedFiles, err errors.E) {
+	f = &FetchedFiles{}
 
 	filesToFetch := make([]string, 2)
 	filesToFetch[0] = revisionFilename