Skip to content

Commit a10199c

Browse files
author
wonder
committed
Fixed potential crash when layer is instantiated without specifying a provider key.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7262 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent cb18a80 commit a10199c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ QgsVectorLayer::QgsVectorLayer(QString vectorLayerPath,
8888
QString providerKey)
8989
: QgsMapLayer(VECTOR, baseName, vectorLayerPath),
9090
mUpdateThreshold(0), // XXX better default value?
91+
mDataProvider(NULL),
9192
mProviderKey(providerKey),
9293
mEditable(false),
9394
mModified(false),

0 commit comments

Comments
 (0)