diff options
author | Noah Eisen <ncteisen@google.com> | 2017-03-14 13:38:41 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2017-03-14 20:13:52 -0700 |
commit | 3005ce8ddab1090c49184e244e46810240ce8245 (patch) | |
tree | a56d977b83aaa9db3eb89ac6b4345113a0be6215 /src/core/lib/surface | |
parent | 6fd36b575b84b0e1564f10fa06dbbc042562263c (diff) |
Only use static on string literals
Diffstat (limited to 'src/core/lib/surface')
-rw-r--r-- | src/core/lib/surface/validate_metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/surface/validate_metadata.c b/src/core/lib/surface/validate_metadata.c index 9995510e48..6e76c4efe7 100644 --- a/src/core/lib/surface/validate_metadata.c +++ b/src/core/lib/surface/validate_metadata.c @@ -53,7 +53,7 @@ static grpc_error *conforms_to(grpc_slice slice, const uint8_t *legal_bits, if ((legal_bits[byte] & (1 << bit)) == 0) { char *dump = grpc_dump_slice(slice, GPR_DUMP_HEX | GPR_DUMP_ASCII); grpc_error *error = grpc_error_set_str( - grpc_error_set_int(GRPC_ERROR_CREATE_FROM_STATIC_STRING(err_desc), + grpc_error_set_int(GRPC_ERROR_CREATE_FROM_COPIED_STRING(err_desc), GRPC_ERROR_INT_OFFSET, p - GRPC_SLICE_START_PTR(slice)), GRPC_ERROR_STR_RAW_BYTES, grpc_slice_from_copied_string(dump)); |