diff options
author | Craig Tiller <ctiller@google.com> | 2017-01-03 08:13:13 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-01-03 08:13:13 -0800 |
commit | 801c6cc5481285968eb18e19f8d1cf2ae0a4a204 (patch) | |
tree | f3c2fc13bd8797c474e29ffcad1213de9ebfd71a /src | |
parent | ff281b9d229da707f94fe4d55236dd683432e53a (diff) |
Fix some NULL usage
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/iomgr/ev_epoll_linux.c | 3 |
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() { |