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
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ static void CALLBACK MACRO_JumpID(LPCSTR lpszPathWindow, LPCSTR topic_id)
LPSTR ptr; LPSTR ptr;
WINE_TRACE("(%s, %s)\n", debugstr_a(lpszPathWindow), debugstr_a(topic_id)); 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; LPSTR tmp;
size_t sz; size_t sz;