libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2013-03-27 14:28:42 +01:00
parent b48d80fbe0
commit 66c00f1f95
1 changed files with 1 additions and 1 deletions

View 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)