Skip to content

Commit

Permalink
Merge remote-tracking branch 'lfcnassif/4.1.x' into 4.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Oct 3, 2023
2 parents ed0fc9f + 5158b45 commit 2f2e290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion iped-engine/src/main/java/iped/engine/util/CLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
public interface CLibrary extends Library {

int _putenv(String value);

int putenv(String value);

void setenv(String name, String value, boolean overwrite);

}
2 changes: 1 addition & 1 deletion iped-engine/src/main/java/iped/engine/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public static void setEnvVar(String key, String value) {
if (C_Library == null) {
C_Library = (CLibrary) Native.loadLibrary("c", CLibrary.class);
}
C_Library.putenv(key + "=" + value);
C_Library.setenv(key, value, true);
}
}

Expand Down

0 comments on commit 2f2e290

Please sign in to comment.