Skip to content

Commit

Permalink
Merge pull request #4 from petr-panteleyev/bugfix/issue-3-property-ov…
Browse files Browse the repository at this point in the history
…erride-does-not-work

Issue 3: Property override does not work
  • Loading branch information
voutilad authored Aug 15, 2024
2 parents e041e25 + 5d5616b commit 6b53faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/sisu/nng/Nng.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public static NngLibrary lib() {
*/
private static void checkEnvironmentConfig() {
final Properties props = System.getProperties();
if (!props.contains("jna.debug_load")) {
if (!props.containsKey("jna.debug_load")) {
System.setProperty("jna.debug_load",
System.getenv().getOrDefault("JNA_DEBUG_LOAD", ""));
}
if (!props.contains("jna.library.path")) {
if (!props.containsKey("jna.library.path")) {
System.setProperty("jna.library.path",
System.getenv().getOrDefault("JNA_LIBRARY_PATH", ""));
}
Expand Down

0 comments on commit 6b53faf

Please sign in to comment.