chiark / gitweb /
update-utmp: Don't error out on runlevel updates if utmp doesn't exist
[elogind.git] / src / libudev / libudev.c
index 5b754a22a4de44faa3c35fb24d1f36c0e76d0eef..1a74808411b58c1f5f6dd446994641d991b0758f 100644 (file)
@@ -191,7 +191,7 @@ _public_ struct udev *udev_new(void)
         }
 
         /* environment overrides config */
-        env = getenv("UDEV_LOG");
+        env = __secure_getenv("UDEV_LOG");
         if (env != NULL)
                 udev_set_log_priority(udev, util_log_priority(env));
 
@@ -221,6 +221,7 @@ _public_ struct udev *udev_ref(struct udev *udev)
  * Drop a reference of the udev library context. If the refcount
  * reaches zero, the resources of the context will be released.
  *
+ * Returns: the passed udev library context if it has still an active reference, or #NULL otherwise.
  **/
 _public_ struct udev *udev_unref(struct udev *udev)
 {