diff --git a/source/code/providers/SCX_EthernetPortStatistics_Class_Provider.cpp b/source/code/providers/SCX_EthernetPortStatistics_Class_Provider.cpp index 67652992..a05c696a 100644 --- a/source/code/providers/SCX_EthernetPortStatistics_Class_Provider.cpp +++ b/source/code/providers/SCX_EthernetPortStatistics_Class_Provider.cpp @@ -134,8 +134,10 @@ void SCX_EthernetPortStatistics_Class_Provider::EnumerateInstances( size_t instancePos=(size_t)-1; if(filter) { - char* exprStr[QLENGTH]={'\0'}; - char* qtypeStr[QLENGTH]={'\0'}; + //char* exprStr[QLENGTH]={'\0'}; + char ** exprStr = new char *[QLENGTH]; + //char* qtypeStr[QLENGTH]={'\0'}; + char ** qtypeStr = new char *[QLENGTH]; const MI_Char** expr=(const MI_Char**)&exprStr; const MI_Char** qtype=(const MI_Char**)&qtypeStr;