Browse Source

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

release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
355f1f7ea2
  1. 7
      libisofs/aaip-os-linux.c

7
libisofs/aaip-os-linux.c

@ -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);
}

Loading…
Cancel
Save