shared/vpick: add missing condition on ret_result

Fixes #32285
This commit is contained in:
Mike Yuan
2024-04-16 01:38:08 +08:00
parent ac68e6d691
commit c694419a51
+3 -1
View 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)