summaryrefslogtreecommitdiffstats
path: root/libmount/src/optstr.c
diff options
context:
space:
mode:
authorKarel Zak2013-03-27 14:28:42 +0100
committerKarel Zak2013-03-27 14:28:42 +0100
commit66c00f1f95e7b87ecb9c819f57a09e2b3493d755 (patch)
tree99c75d8c11532a1d4d167767674dee960abbfe6f /libmount/src/optstr.c
parentlibmount: fix __mnt_cache_find_tag_value() [coverity scan] (diff)
downloadkernel-qcow2-util-linux-66c00f1f95e7b87ecb9c819f57a09e2b3493d755.tar.gz
kernel-qcow2-util-linux-66c00f1f95e7b87ecb9c819f57a09e2b3493d755.tar.xz
kernel-qcow2-util-linux-66c00f1f95e7b87ecb9c819f57a09e2b3493d755.zip
libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/optstr.c')
-rw-r--r--libmount/src/optstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/optstr.c b/libmount/src/optstr.c
index 1bc2566c4..a3a5d0a08 100644
--- a/libmount/src/optstr.c
+++ b/libmount/src/optstr.c
@@ -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)