Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Data source URI: fix QT warning
  • Loading branch information
elpaso authored and nyalldawson committed Nov 30, 2020
1 parent 3b262f2 commit 311039e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsdatasourceuri.cpp
Expand Up @@ -77,7 +77,7 @@ QgsDataSourceUri::QgsDataSourceUri( const QString &u )

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

Expand Down

0 comments on commit 311039e

Please sign in to comment.