Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 499:44ab626bb866
Fix possibly uninitialised variable
author | Chris Cannam |
---|---|
date | Mon, 30 Jan 2012 16:39:40 +0000 |
parents | d2a58dfc3ae5 |
children | d09a396cde80 |
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()) {