Skip to content

Commit 44db22a

Browse files
committed
Be explicit about the meaning of the values in imageBuilderEnvironment
1 parent 081ba4e commit 44db22a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/DefaultOptionHandler.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ public boolean consume(ArgumentQueue args) {
172172
args.poll();
173173
String envVarSetting = headArg.substring(ADD_ENV_VAR_OPTION.length());
174174
String[] keyValue = envVarSetting.split("=", 2);
175-
nativeImage.imageBuilderEnvironment.put(keyValue[0], keyValue.length > 1 ? keyValue[1] : null);
175+
String valueDefinedOrInherited = keyValue.length > 1 ? keyValue[1] : null;
176+
nativeImage.imageBuilderEnvironment.put(keyValue[0], valueDefinedOrInherited);
176177
return true;
177178
}
178179
if (headArg.startsWith("-J")) {

0 commit comments

Comments
 (0)