Skip to content

Commit

Permalink
Fix qt warning raised while constructing some forms of layer URIs
Browse files Browse the repository at this point in the history
due to accessing character position past end of string
  • Loading branch information
nyalldawson committed Nov 20, 2020
1 parent 502f420 commit 78825cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsdatasourceuri.cpp
Expand Up @@ -89,7 +89,7 @@ QgsDataSourceUri::QgsDataSourceUri( const QString &u )
mTable = pval;
}

if ( uri[i] == '(' )
if ( i < uri.length() && uri[i] == '(' )
{
i++;

Expand Down

0 comments on commit 78825cf

Please sign in to comment.