winhlp32: Do not pass NULL to strchr() (spotted by clang).

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Kirill Smirnov 2016-05-09 18:56:14 +03:00 committed by Alexandre Julliard
parent fe517f9256
commit 5a3ad0ecf0

View file

@ -607,7 +607,7 @@ static void CALLBACK MACRO_JumpID(LPCSTR lpszPathWindow, LPCSTR topic_id)
LPSTR ptr;
WINE_TRACE("(%s, %s)\n", debugstr_a(lpszPathWindow), debugstr_a(topic_id));
if ((ptr = strchr(lpszPathWindow, '>')) != NULL)
if (lpszPathWindow && (ptr = strchr(lpszPathWindow, '>')) != NULL)
{
LPSTR tmp;
size_t sz;