diff options
Diffstat (limited to 'src/kernel/user/syscall.c')
-rw-r--r-- | src/kernel/user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/user/syscall.c b/src/kernel/user/syscall.c index 350262c..42b06eb 100644 --- a/src/kernel/user/syscall.c +++ b/src/kernel/user/syscall.c @@ -307,7 +307,7 @@ uint32_t select_sc(sc_args_t args) { uint64_t select_begin_time = get_kernel_time(); void** wait_objs = (void**)malloc((n+1) * sizeof(void*)); - if (!wait_objs) return false; + if (wait_objs == 0) return false; bool ret = false; |