Merge pull request #11076 from dgquintas/epoll_error_static_string

Don't crate GRPC_OS_ERROR with a non-static string
pull/8571/merge
David G. Quintas 8 years ago committed by GitHub
commit 44369698fd
  1. 2
      src/core/lib/iomgr/error.c

@ -769,7 +769,7 @@ grpc_error *grpc_os_error(const char *file, int line, int err,
GRPC_ERROR_INT_ERRNO, err),
GRPC_ERROR_STR_OS_ERROR,
grpc_slice_from_static_string(strerror(err))),
GRPC_ERROR_STR_SYSCALL, grpc_slice_from_static_string(call_name));
GRPC_ERROR_STR_SYSCALL, grpc_slice_from_copied_string(call_name));
}
#ifdef GPR_WINDOWS

Loading…
Cancel
Save