mirror of
https://github.com/containers/podman.git
synced 2025-06-17 15:08:08 +08:00
Fix errors found in coverity scan
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -236,7 +236,7 @@ func (r *Runtime) removePod(ctx context.Context, p *Pod, removeCtrs, force bool)
|
||||
}
|
||||
|
||||
if err := r.removeContainer(ctx, ctr, force, false, true); err != nil {
|
||||
if removalErr != nil {
|
||||
if removalErr == nil {
|
||||
removalErr = err
|
||||
} else {
|
||||
logrus.Errorf("Error removing container %s from pod %s: %v", ctr.ID(), p.ID(), err)
|
||||
|
@ -108,6 +108,7 @@ func ProcessOptions(options []string, isTmpfs bool, sourcePath string) ([]string
|
||||
if foundZ {
|
||||
return nil, errors.Wrapf(ErrDupeMntOption, "only one of 'z' and 'Z' can be used")
|
||||
}
|
||||
foundZ = true
|
||||
default:
|
||||
return nil, errors.Wrapf(ErrBadMntOption, "unknown mount option %q", opt)
|
||||
}
|
||||
|
Reference in New Issue
Block a user