From: Karel Zak Date: Wed, 27 Mar 2013 13:28:42 +0000 (+0100) Subject: libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan] X-Git-Tag: v2.23-rc2~104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66c00f1f95e7b87ecb9c819f57a09e2b3493d755;p=thirdparty%2Futil-linux.git libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan] Signed-off-by: Karel Zak --- 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)