- bugfix for segfault with new debug method needs to properly init debug system in a new area
This commit is contained in:
parent
3b56aa4475
commit
8be4bafdcf
|
@ -126,7 +126,7 @@ public:
|
||||||
~SystemFlags();
|
~SystemFlags();
|
||||||
|
|
||||||
static void init(bool haveSpecialOutputCommandLineOption);
|
static void init(bool haveSpecialOutputCommandLineOption);
|
||||||
static SystemFlagsType & getSystemSettingType(DebugType type) { return (*debugLogFileList)[type]; }
|
static SystemFlagsType & getSystemSettingType(DebugType type);
|
||||||
static size_t httpWriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data);
|
static size_t httpWriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data);
|
||||||
static std::string getHTTP(std::string URL,CURL *handle=NULL, int timeOut=-1, CURLcode *savedResult=NULL);
|
static std::string getHTTP(std::string URL,CURL *handle=NULL, int timeOut=-1, CURLcode *savedResult=NULL);
|
||||||
static std::string escapeURL(std::string URL, CURL *handle=NULL);
|
static std::string escapeURL(std::string URL, CURL *handle=NULL);
|
||||||
|
|
|
@ -185,6 +185,14 @@ CURL *SystemFlags::initHTTP() {
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SystemFlags::SystemFlagsType & SystemFlags::getSystemSettingType(DebugType type) {
|
||||||
|
if(SystemFlags::debugLogFileList == NULL) {
|
||||||
|
SystemFlags::init(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (*debugLogFileList)[type];
|
||||||
|
}
|
||||||
|
|
||||||
void SystemFlags::init(bool haveSpecialOutputCommandLineOption) {
|
void SystemFlags::init(bool haveSpecialOutputCommandLineOption) {
|
||||||
SystemFlags::haveSpecialOutputCommandLineOption = haveSpecialOutputCommandLineOption;
|
SystemFlags::haveSpecialOutputCommandLineOption = haveSpecialOutputCommandLineOption;
|
||||||
//if(SystemFlags::debugLogFileList.size() == 0) {
|
//if(SystemFlags::debugLogFileList.size() == 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user