Don't crate GRPC_OS_ERROR with a non-static string
diff --git a/src/core/lib/iomgr/ev_epoll_linux.c b/src/core/lib/iomgr/ev_epoll_linux.c
index e603a75..fac4b11 100644
--- a/src/core/lib/iomgr/ev_epoll_linux.c
+++ b/src/core/lib/iomgr/ev_epoll_linux.c
@@ -418,7 +418,7 @@
&err_msg,
"epoll_ctl (epoll_fd: %d) add fd: %d failed with error: %d (%s)",
pi->epoll_fd, fds[i]->fd, errno, strerror(errno));
- append_error(error, GRPC_OS_ERROR(errno, err_msg), err_desc);
+ append_error(error, GRPC_OS_ERROR(errno, err_desc), err_msg);
gpr_free(err_msg);
}
@@ -456,7 +456,7 @@
"error: %d (%s)",
pi->epoll_fd, GRPC_WAKEUP_FD_GET_READ_FD(&global_wakeup_fd),
errno, strerror(errno));
- append_error(error, GRPC_OS_ERROR(errno, err_msg), err_desc);
+ append_error(error, GRPC_OS_ERROR(errno, err_desc), err_msg);
gpr_free(err_msg);
}
}
@@ -477,7 +477,7 @@
"epoll_ctl (epoll_fd: %d) delete fds[%zu]: %d failed with "
"error: %d (%s)",
pi->epoll_fd, i, pi->fds[i]->fd, errno, strerror(errno));
- append_error(error, GRPC_OS_ERROR(errno, err_msg), err_desc);
+ append_error(error, GRPC_OS_ERROR(errno, err_desc), err_msg);
gpr_free(err_msg);
}
@@ -507,7 +507,7 @@
&err_msg,
"epoll_ctl (epoll_fd: %d) del fd: %d failed with error: %d (%s)",
pi->epoll_fd, fd->fd, errno, strerror(errno));
- append_error(error, GRPC_OS_ERROR(errno, err_msg), err_desc);
+ append_error(error, GRPC_OS_ERROR(errno, err_desc), err_msg);
gpr_free(err_msg);
}
}
@@ -1435,7 +1435,7 @@
gpr_asprintf(&err_msg,
"epoll_wait() epoll fd: %d failed with error: %d (%s)",
epoll_fd, errno, strerror(errno));
- append_error(error, GRPC_OS_ERROR(errno, err_msg), err_desc);
+ append_error(error, GRPC_OS_ERROR(errno, err_desc), err_msg);
} else {
/* We were interrupted. Save an interation by doing a zero timeout
epoll_wait to see if there are any other events of interest */