Skip to content

Commit

Permalink
Issue 3: Property override does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-panteleyev committed Aug 3, 2023
1 parent c47f229 commit 5d5616b
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 5d5616b

Please sign in to comment.