|
@@ -147,7 +147,7 @@ int lhhttpapi::DBLogin(const QString& pLocalip,const QString &pSerid, const QStr
|
|
|
{
|
|
|
if(fnDBLogin == nullptr) return -1;
|
|
|
//char buffer[LHHTTPAPI_BUFFER_SIZE] = {0};
|
|
|
- char *buffer = new char[LHHTTPAPI_BUFFER_SIZE];
|
|
|
+ char *buffer = new char[LHHTTPAPI_BUFFER_SIZE] {0};
|
|
|
int ret = fnDBLogin(pLocalip.toUtf8().data(),pSerid.toUtf8().data(),appType.toUtf8().data(), buffer, LHHTTPAPI_BUFFER_SIZE - 1,bismulti,phttpip);
|
|
|
pszUserToken = QString::fromUtf8(buffer);
|
|
|
|