]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]
authorKarel Zak <kzak@redhat.com>
Wed, 27 Mar 2013 13:28:42 +0000 (14:28 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Mar 2013 13:28:42 +0000 (14:28 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/optstr.c

index 1bc2566c42f5c924658de14f0c46c6d2de8fb02c..a3a5d0a08755d0c2421660caccd126ea7db9ad8a 100644 (file)
@@ -169,7 +169,7 @@ int mnt_optstr_next_option(char **optstr, char **name, size_t *namesz,
        return mnt_optstr_parse_next(optstr, name, namesz, value, valuesz);
 }
 
-static int __attribute__((nonnull))
+static int __attribute__((nonnull(1, 2)))
 __mnt_optstr_append_option(char **optstr,
                        const char *name, size_t nsz,
                        const char *value, size_t vsz)