Bug report #3909

QgsVectorLayer::vectorType - incomplete return path

Added by Mateusz Loskot - about 18 years ago. Updated over 14 years ago.

Assignee:Gary Sherman
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13933


File qgis/src/gui/qgsvectorlayer.cpp, line 1250

In the member function !QgsVectorLayer::vectorType, not all control paths return a value.
Returned value of type of QGis::VectorType can be uninitialized -> undefined behaviour.


#1 Updated by Gavin Macaulay - about 18 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed in SVN f8228bc9 (SVN r5280)

#2 Updated by Anonymous over 14 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF