Wine: Adjust code to silence a compiler warning (GCC 4.6).
Gerald Pfeifer
gerald at pfeifer.com
Mon Jul 4 20:41:35 CDT 2011
Without this, it's really hard for a compiler to look through the
data flow and see that the variable is not used uninitialized. And
the change actually makes the TRACE simpler. :-)
Gerald
---
dlls/urlmon/uri.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c
index 6f2897a..33d0eb2 100644
--- a/dlls/urlmon/uri.c
+++ b/dlls/urlmon/uri.c
@@ -3785,6 +3785,7 @@ static HRESULT validate_path(const UriBuilder *builder, parse_data *data, DWORD
static const WCHAR nullW[] = {0};
ptr = nullW;
check_len = FALSE;
+ expected_len = -1;
}
component = ptr;
@@ -3798,7 +3799,7 @@ static HRESULT validate_path(const UriBuilder *builder, parse_data *data, DWORD
if(!valid || (check_len && expected_len != data->path_len)) {
TRACE("(%p %p %x): Invalid path component %s.\n", builder, data, flags,
- debugstr_wn(component, check_len ? expected_len : -1) );
+ debugstr_wn(component, expected_len) );
return INET_E_INVALID_URL;
}
--
1.7.4.1
More information about the wine-patches
mailing list