Skip to content

Commit

Permalink
Data source URI: fix QT warning
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Dec 1, 2020
1 parent a34ff39 commit 85437fa
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 85437fa

Please sign in to comment.