diff options
Diffstat (limited to 'api')
| -rw-r--r-- | api/src/glfs-handleops.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index d4e154526ab..8b4307e1096 100644 --- a/api/src/glfs-handleops.c +++ b/api/src/glfs-handleops.c @@ -2216,7 +2216,7 @@ pub_glfs_h_poll_upcall370(struct glfs *fs, struct glfs_callback_arg *up_arg)      ret = pub_glfs_h_poll_upcall(fs, &upcall);      if (ret == 0) {          up_arg->fs = fs; -        if (errno == ENOENT || upcall->event == NULL) { +        if ((errno == ENOENT) || !upcall || !upcall->event) {              up_arg->reason = GLFS_UPCALL_EVENT_NULL;              goto out;          }  | 
