]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/vpick: add missing condition on ret_result 32286/head
authorMike Yuan <me@yhndnzj.com>
Mon, 15 Apr 2024 17:29:27 +0000 (01:29 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 15 Apr 2024 17:38:08 +0000 (01:38 +0800)
Fixes #32285

src/shared/vpick.c

index c4c8accb3766cdf4e43123e2954f232f2e3a9a84..1870fb97ef7ed6aad4ea5306680d423f6ac48fb9 100644 (file)
@@ -658,7 +658,9 @@ int path_pick_update_warn(
                       &result);
         if (r == -ENOENT) {
                 log_debug("Path '%s' doesn't exist, leaving as is.", *path);
-                *ret_result = PICK_RESULT_NULL;
+
+                if (ret_result)
+                        *ret_result = PICK_RESULT_NULL;
                 return 0;
         }
         if (r < 0)