]> Savannah Git Hosting - gnulib.git/commitdiff
mountlist: improve -fanalyzer malloc checking
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2021 00:37:11 +0000 (17:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2021 01:06:55 +0000 (18:06 -0700)
ChangeLog
lib/mountlist.h

index dded7f2752769253fe783d340c1f889ba1ed0d9b..f130f9317ed3bae73c6a08d046588e8dad0b3618 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        * lib/backup-internal.h, lib/backupfile.h:
        * lib/canonicalize.h, lib/dfa.h, lib/dirname.h, lib/exclude.h:
        * lib/filenamecat.h, lib/malloca.h, lib/modechange.h:
+       * lib/mountlist.h:
        Add malloc-related attributes and include stdlib.h as needed.
        * lib/dfa.c: Include verify.h.
        (assume_nonnull): New macro.
index 66dbb1abafdd7aed6fedfa1ff6ee42edf1c36188..fbad12461b486c3128dd749353310c9ee6232fe7 100644 (file)
@@ -37,7 +37,8 @@ struct mount_entry
   struct mount_entry *me_next;
 };
 
-struct mount_entry *read_file_system_list (bool need_fs_type);
+struct mount_entry *read_file_system_list (bool need_fs_type)
+  _GL_ATTRIBUTE_MALLOC;
 void free_mount_entry (struct mount_entry *entry);
 
 #endif