From 5de180beeb04aee97474e161bdf7b1f3362b4e5f Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 14 May 2012 01:01:10 -0500 Subject: [PATCH] msxml3: Avoid a dangling else (LLVM/Clang). --- dlls/msxml3/domdoc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 6805c75f799..5097ff6ca8c 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -2277,8 +2277,7 @@ static HRESULT WINAPI domdoc_loadXML( /* skip leading spaces if needed */ if (This->properties->version == MSXML_DEFAULT || This->properties->version == MSXML26) - while (*ptr) - if (isspaceW(*ptr)) ptr++; else break; + while (*ptr && isspaceW(*ptr)) ptr++; xmldoc = doparse(This, (char*)ptr, strlenW(ptr)*sizeof(WCHAR), XML_CHAR_ENCODING_UTF16LE); if ( !xmldoc )