Avoided to have an unused variable with --disable-xattr. Coverity CID 12544.

This commit is contained in:
Thomas Schmitt 2015-10-13 14:40:42 +02:00
parent 57fd669d1d
commit 355f1f7ea2
1 changed files with 6 additions and 1 deletions

View File

@ -461,8 +461,9 @@ int aaip_set_attr_list(char *path, size_t num_attrs, char **names,
{
int ret;
size_t i, consumed, acl_text_fill, acl_idx= 0;
char *acl_text= NULL, *list= NULL;
char *acl_text= NULL;
#ifdef Libisofs_with_aaip_xattR
char *list= NULL;
ssize_t list_size= 0;
#endif
#ifdef Libisofs_with_aaip_acL
@ -611,8 +612,12 @@ int aaip_set_attr_list(char *path, size_t num_attrs, char **names,
ex:;
if(acl_text != NULL)
free(acl_text);
#ifdef Libisofs_with_aaip_xattR
if(list != NULL)
free(list);
#endif
return(ret);
}