preproc.c: Fix NULL deref on token pasting
commit7d96ac6a567df5075e3f4f4019d6d24727db8361
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 9 Jul 2010 22:11:41 +0000 (10 02:11 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Fri, 9 Jul 2010 22:34:05 +0000 (10 02:34 +0400)
treecdc2011728225880d016ae04ca937ed95e6cd62c
parenta947529954d9db0214e65d2c856111f823381f7c
preproc.c: Fix NULL deref on token pasting

In case if there is a whitespace before
'paste' token we may reach NULL dereference
in strlen since paste_head will point to
TOK_WHITESPACE. Fix it.

[mainstream adabc1576b957fc7d929d2c7e749b4f45f7293aa]

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
preproc.c