aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-01-03 08:13:13 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-01-03 08:13:13 -0800
commit801c6cc5481285968eb18e19f8d1cf2ae0a4a204 (patch)
treef3c2fc13bd8797c474e29ffcad1213de9ebfd71a /src
parentff281b9d229da707f94fe4d55236dd683432e53a (diff)
Fix some NULL usage
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/iomgr/ev_epoll_linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/ev_epoll_linux.c b/src/core/lib/iomgr/ev_epoll_linux.c
index e8daa1f52c..045001f6d8 100644
--- a/src/core/lib/iomgr/ev_epoll_linux.c
+++ b/src/core/lib/iomgr/ev_epoll_linux.c
@@ -830,7 +830,8 @@ static void workqueue_enqueue(grpc_exec_ctx *exec_ctx, grpc_closure *closure,
static grpc_closure_scheduler *workqueue_scheduler(grpc_workqueue *workqueue) {
polling_island *pi = (polling_island *)workqueue;
- return &pi->workqueue_scheduler;
+ return workqueue == NULL ? grpc_schedule_on_exec_ctx
+ : &pi->workqueue_scheduler;
}
static grpc_error *polling_island_global_init() {