Mercurial > hg > sonic-visualiser
changeset 499:44ab626bb866
Fix possibly uninitialised variable
author | Chris Cannam |
---|---|
date | Mon, 30 Jan 2012 16:39:40 +0000 (2012-01-30) |
parents | d2a58dfc3ae5 |
children | d09a396cde80 |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Mon Jan 30 16:06:47 2012 +0000 +++ b/main/MainWindow.cpp Mon Jan 30 16:39:40 2012 +0000 @@ -3437,7 +3437,7 @@ LayerFactory::LayerTypeSet emptyTypes = LayerFactory::getInstance()->getValidEmptyLayerTypes(); - Layer *newLayer; + Layer *newLayer = 0; if (emptyTypes.find(type) != emptyTypes.end()) {