diff options
-rw-r--r-- | modules/im/ximcp/imLcPrs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/im/ximcp/imLcPrs.c b/modules/im/ximcp/imLcPrs.c index 795ea719..ea6d429a 100644 --- a/modules/im/ximcp/imLcPrs.c +++ b/modules/im/ximcp/imLcPrs.c @@ -678,7 +678,7 @@ parseline( b->treesize = newsize; /* Re-derive top after realloc() to avoid undefined behaviour (and crashes on architectures that track pointer bounds). */ - if (top >= (DTIndex *) old && top < (DTIndex *) &old[oldsize]) + if (old && top >= (DTIndex *) old && top < (DTIndex *) &old[oldsize]) top = (DTIndex *) (((char *)new) + (((char *)top)-(char *)old)); } p = &b->tree[b->treeused]; |