Skip to content

Commit

Permalink
[EagerAppCDS] fix bug by clearing buffer before using
Browse files Browse the repository at this point in the history
Summary: as title

Testing: /test/com/alibaba/quickstart/TestEnvVariableReplay.java

Reviewers: lingjun-cg, yulei

Issue: dragonwell-project#646
  • Loading branch information
jia-wei-tang committed Jun 18, 2024
1 parent 1953a45 commit b110c8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hotspot/src/share/vm/runtime/quickStart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ void QuickStart::convert_path_by_env(const char* origin_path, char* new_path) {
}

int p1 = 0, p2 = p1;
new_path[0] = '\0';
bool process_end = false;
while (!process_end) {
if (origin_path[p2] == '\0') {
Expand Down

0 comments on commit b110c8c

Please sign in to comment.