1
0
Fork 0

relocate: 0 is always null pointer

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1457 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 2013-11-08 15:57:19 +00:00
parent ec1d554397
commit f25341ff28
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ dnl ============
define(`INDENT', `xc_dprint_indent(indent);')
dnl }}}
dnl {{{ SRCPTR_EX(1:type, 2:elm)
define(`SRCPTR_EX', `IFRELOCATE(`ptradd($1 *, $2, ptrdiff)', `$2')')
define(`SRCPTR_EX', `IFRELOCATE(`($2 ? ptradd($1 *, $2, ptrdiff) : NULL)', `$2')')
dnl }}}
dnl {{{ ALLOC(1:dst, 2:type, 3:count=1, 4:clean=false, 5:realtype=$2)
define(`ALLOC', `