sd-json: accept NULL path in sd_json_parse_file_at() too

This commit is contained in:
Mike Yuan
2025-11-03 22:32:57 +01:00
parent eaebc33220
commit 89b9a68e5f
+1 -3
View File
@@ -3453,10 +3453,8 @@ _public_ int sd_json_parse_file_at(
if (f)
r = read_full_stream(f, &text, NULL);
else if (path)
r = read_full_file_full(dir_fd, path, UINT64_MAX, SIZE_MAX, 0, NULL, &text, NULL);
else
return -EINVAL;
r = read_full_file_full(dir_fd, path, UINT64_MAX, SIZE_MAX, 0, NULL, &text, NULL);
if (r < 0)
return r;