Skip to content

Commit

Permalink
Merge pull request #5818 from vrothberg/fix-nil-deref
Browse files Browse the repository at this point in the history
podmanV2: fix nil deref
  • Loading branch information
openshift-merge-robot authored Apr 15, 2020
2 parents f0b6cde + 123158e commit ffcb99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/podmanV2/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func preRunE(cmd *cobra.Command, _ []string) error {
cmd.SetHelpTemplate(registry.HelpTemplate())
cmd.SetUsageTemplate(registry.UsageTemplate())

if cmd.Flag("cpu_profile").Changed {
if cmd.Flag("cpu-profile").Changed {
f, err := os.Create(registry.PodmanOptions.CpuProfile)
if err != nil {
return errors.Wrapf(err, "unable to create cpu profiling file %s",
Expand Down

0 comments on commit ffcb99d

Please sign in to comment.