Skip to content

Commit

Permalink
use getenv() instead of secure_getenv() for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 8, 2019
1 parent 49c7fae commit 69cf2fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libudev/libudev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ _public_ struct udev* udev_new(void) {
struct udev* new_udev = new udev;
new_udev->loader = NULL;
new_udev->loader_udev = NULL;
char* logenv = secure_getenv("LIBUDEV_STUB_LOGGING");
char* logenv = getenv("LIBUDEV_STUB_LOGGING");
g_logging = (logenv) ? false : true;

char* library = secure_getenv("LIBUDEV_STUB_PASSTHROUGH");
char* library = getenv("LIBUDEV_STUB_PASSTHROUGH");
if (library) {
LOG() << "found LIBUDEV_STUB_PASSTHROUGH = " << library;
LibUdev1Loader* loader = new LibUdev1Loader();
Expand Down

0 comments on commit 69cf2fb

Please sign in to comment.