syntax-check: Add a rule to enforce glnx_autofd over glnx_fd_close
And fix the one final use. Closes: #1280 Approved by: jlebon
This commit is contained in:
1 parent
3577b4a6c6
commit
9955695da3
2 files changed
+6
-2
No files matched your search
@@ -821,7 +821,7 @@ adopt_and_commit_regfile (OstreeRepo *self,
|
||||
ot_checksum_init (&hasher);
|
||||
ot_checksum_update_bytes (&hasher, header);
|
||||
|
||||
glnx_fd_close int fd = -1;
|
||||
glnx_autofd int fd = -1;
|
||||
if (!glnx_openat_rdonly (dfd, name, FALSE, &fd, error))
|
||||
return FALSE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user