From 66c00f1f95e7b87ecb9c819f57a09e2b3493d755 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 27 Mar 2013 14:28:42 +0100 Subject: [PATCH] libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan] Signed-off-by: Karel Zak --- libmount/src/optstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmount/src/optstr.c b/libmount/src/optstr.c index 1bc2566c42..a3a5d0a087 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) -- 2.47.2