modify crash

Signed-off-by: liuwei <liuwei573@huawei.com>
This commit is contained in:
liuwei 2024-08-21 18:22:43 +08:00
parent b1cf4966f9
commit 6d06d41ea3

View File

@ -196,6 +196,7 @@ void *AsyncCmd::Popen(void *arg)
#endif
auto param = reinterpret_cast<AsyncParams *>(arg);
if (param == nullptr) {
WRITE_LOG(LOG_FATAL, "get param is nullptr.");
return reinterpret_cast<void *>(ERR_PARAM_NULLPTR);
}
AsyncParams params = *param;