Merge pull request #464 from yvt/patch-1

Fix segfault caused by access to an uninitialized std::string
This commit is contained in:
YVT 2016-12-01 13:44:51 +09:00 committed by GitHub
commit aeadee343b

View File

@ -148,7 +148,6 @@ namespace spades {
static spades::Settings::ItemHandle name ( # name , & name ## _desc )
#define SPADES_SETTING(name) \
extern spades::SettingItemDescriptor name ## _desc; \
static spades::Settings::ItemHandle name ( # name , & name ## _desc )
static spades::Settings::ItemHandle name ( # name , nullptr )
}