Ignore:
Timestamp:
Sep 13, 2020, 1:21:43 PM (5 years ago)
Author:
bird
Message:

kash: forked-mode build fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shheap.c

    r3438 r3451  
    384384{
    385385#ifdef SHHEAP_IN_USE
    386     shmemhdr *mem = (shmemhdr *)ptr - 1;
     386    shmemhdr *mem;
    387387    shmemhdr *right;
    388388    shmemhdr *left;
    389389    shmtxtmp tmp;
     390
     391    if (ptr)
     392        mem = (shmemhdr *)ptr - 1;
     393    else
     394        return;
    390395
    391396    if (mem->magic != SHMEMHDR_MAGIC_USED)
Note: See TracChangeset for help on using the changeset viewer.