diff --git a/os/os0proc.c b/os/os0proc.c index a0ea9a1b258..48922886f23 100644 --- a/os/os0proc.c +++ b/os/os0proc.c @@ -97,6 +97,7 @@ os_mem_alloc_large( fprintf(stderr, "InnoDB: HugeTLB: Warning: Failed to" " attach shared memory segment, errno %d\n", errno); + ptr = NULL; } /* Remove the shared memory segment so that it will be