Skip to content

Commit

Permalink
Merge pull request #24702 from mi4r/dev/mi4r/importBuilderNullDerefFix
Browse files Browse the repository at this point in the history
api: Error checking before NULL dereference
  • Loading branch information
openshift-merge-bot[bot] authored Nov 28, 2024
2 parents b965d7b + 1fa27ff commit 3d720ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai
OverrideConfig: options.CommitOptions.OverrideConfig,
}
importBuilder, err := buildah.ImportBuilder(ctx, c.runtime.store, builderOptions)
importBuilder.Format = options.PreferredManifestType
if err != nil {
return nil, err
}
importBuilder.Format = options.PreferredManifestType
if options.Author != "" {
importBuilder.SetMaintainer(options.Author)
}
Expand Down

0 comments on commit 3d720ce

Please sign in to comment.