Merge pull request #965 from hilbert149/lseek-args

Fix swapped lseek() arguments
This commit is contained in:
Eric Hawicz
2026-09-06 22:51:47 -04:00
committed by GitHub
+1 -1
View File
@@ -233,7 +233,7 @@ static void test_read_valid_nested_with_fd(const char *testdir)
json_util_get_last_err());
}
(void)lseek(d, SEEK_SET, 0);
(void)lseek(d, 0, SEEK_SET);
jso = json_object_from_fd_ex(d, 3);
if (jso != NULL)