Skip to content

Commit 2e25801

Browse files
author
duke
committed
Backport 82e16ba248a97e3446d5b2d64c353b61dd6bdda6
1 parent 63a800d commit 2e25801

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hotspot/share/logging/logOutput.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -354,7 +354,9 @@ bool LogOutput::parse_options(const char* options, outputStream* errstream) {
354354
}
355355
break;
356356
}
357-
pos = comma_pos + 1;
357+
if (comma_pos != nullptr) {
358+
pos = comma_pos + 1;
359+
}
358360
} while (comma_pos != nullptr);
359361

360362
os::free(opts);

0 commit comments

Comments
 (0)