Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[core] fix use c++_static compile error on Android (#1593)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he authored and cxfeng1 committed Sep 29, 2018
1 parent 162719c commit a151386
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@ WeexJSConnection::WeexJSConnection()
if (checkDirOrFileIsLink(SoUtils::crash_file_path())) {
std::string tmp = SoUtils::crash_file_path();
size_t length = tmp.length();
char buf[length];
char *buf = new char[length];
memset(buf, 0, length);
if (!getDirOrFileLink(SoUtils::crash_file_path(), buf, length)) {
LOGE("getDirOrFileLink filePath(%s) error\n", SoUtils::crash_file_path());
g_crashFileName = SoUtils::crash_file_path();
} else {
g_crashFileName = buf;
}
delete []buf;
} else {
g_crashFileName = SoUtils::crash_file_path();
}
Expand Down

0 comments on commit a151386

Please sign in to comment.