Initialize 'str' in ICONTITLE_GetTitlePos.
diff --git a/controls/icontitle.c b/controls/icontitle.c index f209e5a..e2ac64a 100644 --- a/controls/icontitle.c +++ b/controls/icontitle.c
@@ -65,7 +65,7 @@ static BOOL ICONTITLE_GetTitlePos( WND* wnd, LPRECT lpRect ) { static WCHAR emptyTitleText[] = {'<','.','.','.','>',0}; - LPWSTR str; + LPWSTR str = NULL; int length = lstrlenW( wnd->owner->text ); if( length )