Skip to content

Commit

Permalink
Fixed potential crash when layer is instantiated without specifying a…
Browse files Browse the repository at this point in the history
… provider key.

git-svn-id: http://svn.osgeo.org/qgis/trunk@7262 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Oct 11, 2007
1 parent dcd52f1 commit 995037a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -88,6 +88,7 @@ QgsVectorLayer::QgsVectorLayer(QString vectorLayerPath,
QString providerKey)
: QgsMapLayer(VECTOR, baseName, vectorLayerPath),
mUpdateThreshold(0), // XXX better default value?
mDataProvider(NULL),
mProviderKey(providerKey),
mEditable(false),
mModified(false),
Expand Down

0 comments on commit 995037a

Please sign in to comment.