Module: wine Branch: master Commit: 5de180beeb04aee97474e161bdf7b1f3362b4e5f URL: http://source.winehq.org/git/wine.git/?a=commit;h=5de180beeb04aee97474e161bd...
Author: Austin English austinenglish@gmail.com Date: Mon May 14 01:01:10 2012 -0500
msxml3: Avoid a dangling else (LLVM/Clang).
---
dlls/msxml3/domdoc.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 6805c75..5097ff6 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 )