]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
open-file: add missing assert 28832/head
authorDavid Tardon <dtardon@redhat.com>
Mon, 14 Aug 2023 15:01:41 +0000 (17:01 +0200)
committerDavid Tardon <dtardon@redhat.com>
Thu, 17 Aug 2023 07:48:17 +0000 (09:48 +0200)
src/shared/open-file.c

index 906a141d60d68a8e3075534785cbcab8d000acd7..42772bdabe6c520b8bce10df90455e3405cb702b 100644 (file)
@@ -132,6 +132,8 @@ OpenFile *open_file_free(OpenFile *of) {
 }
 
 void open_file_free_many(OpenFile **head) {
+        assert(head);
+
         LIST_CLEAR(open_files, *head, open_file_free);
 }