summaryrefslogtreecommitdiff
path: root/vendor/github.com/gogo/protobuf/proto/extensions.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-05 19:44:43 +0200
committerGitHub <noreply@github.com>2019-09-05 19:44:43 +0200
commitcef5bec06b200ffa5caed46db296e55fb7d72376 (patch)
tree2dd8944e49a07b8f067f07ac8c880244f97dbdb8 /vendor/github.com/gogo/protobuf/proto/extensions.go
parent3f81f4409d41510dd7440af9a3321c949ca485a0 (diff)
parentf66a2069f1b26ff9987b008ba4b0c91ac3b682cc (diff)
downloadpodman-cef5bec06b200ffa5caed46db296e55fb7d72376.tar.gz
podman-cef5bec06b200ffa5caed46db296e55fb7d72376.tar.bz2
podman-cef5bec06b200ffa5caed46db296e55fb7d72376.zip
Merge pull request #3948 from openSUSE/buildah-update
Update buildah to v1.11.0
Diffstat (limited to 'vendor/github.com/gogo/protobuf/proto/extensions.go')
-rw-r--r--vendor/github.com/gogo/protobuf/proto/extensions.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/github.com/gogo/protobuf/proto/extensions.go b/vendor/github.com/gogo/protobuf/proto/extensions.go
index 686bd2a09..341c6f57f 100644
--- a/vendor/github.com/gogo/protobuf/proto/extensions.go
+++ b/vendor/github.com/gogo/protobuf/proto/extensions.go
@@ -527,6 +527,7 @@ func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) {
// SetExtension sets the specified extension of pb to the specified value.
func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error {
if epb, ok := pb.(extensionsBytes); ok {
+ ClearExtension(pb, extension)
newb, err := encodeExtension(extension, value)
if err != nil {
return err