aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/surface/call.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-07 21:31:32 -0800
committerGravatar GitHub <noreply@github.com>2017-02-07 21:31:32 -0800
commit4087712730de8fe361711b6df193d069c702e262 (patch)
tree8cae155d60d0794c38be480f56d58a017428de4a /src/core/lib/surface/call.c
parent5ef95a96abf8981245f3154ef5ab7a4f10c42e00 (diff)
parent8c58a489a2cf8f81299d97a082995cb77eb0bc52 (diff)
Merge pull request #9631 from ctiller/no_no_error
Save allocating a grpc_error if there is no error
Diffstat (limited to 'src/core/lib/surface/call.c')
-rw-r--r--src/core/lib/surface/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/surface/call.c b/src/core/lib/surface/call.c
index a8152964fc..3352e427cd 100644
--- a/src/core/lib/surface/call.c
+++ b/src/core/lib/surface/call.c
@@ -897,7 +897,7 @@ static void recv_common_filter(grpc_exec_ctx *exec_ctx, grpc_call *call,
error = grpc_error_set_str(error, GRPC_ERROR_STR_GRPC_MESSAGE, msg);
gpr_free(msg);
grpc_metadata_batch_remove(exec_ctx, b, b->idx.named.grpc_message);
- } else {
+ } else if (error != GRPC_ERROR_NONE) {
error = grpc_error_set_str(error, GRPC_ERROR_STR_GRPC_MESSAGE, "");
}