QUrl: Fix compiler warning about uninitialized var
Fix gcc 4.8.0 warning about potential use of uninitialized variable. Change-Id: I0881b1209e9156323b2710c50256d4bed83930ca Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
0317763781
commit
ab94a98b58
@ -3731,7 +3731,7 @@ QString QUrl::errorString() const
|
|||||||
return QString();
|
return QString();
|
||||||
|
|
||||||
QString errorSource;
|
QString errorSource;
|
||||||
int errorPosition;
|
int errorPosition = 0;
|
||||||
QUrlPrivate::ErrorCode errorCode = d->validityError(&errorSource, &errorPosition);
|
QUrlPrivate::ErrorCode errorCode = d->validityError(&errorSource, &errorPosition);
|
||||||
if (errorCode == QUrlPrivate::NoError)
|
if (errorCode == QUrlPrivate::NoError)
|
||||||
return QString();
|
return QString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user