diff options
Diffstat (limited to 'usr/src/cmd/compress/compress.c')
-rw-r--r-- | usr/src/cmd/compress/compress.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/cmd/compress/compress.c b/usr/src/cmd/compress/compress.c index dba163196b..03341add41 100644 --- a/usr/src/cmd/compress/compress.c +++ b/usr/src/cmd/compress/compress.c @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1603,7 +1603,7 @@ copystat(char *ifname, struct stat *ifstat, char *ofname) { mode_t mode; struct utimbuf timep; - acl_t *aclp; + acl_t *aclp = NULL; int error; if (fclose(outp)) { @@ -1667,8 +1667,10 @@ copystat(char *ifname, struct stat *ifstat, char *ofname) "entries\n"), ofname); perm_stat = 1; } - if (aclp) + if (aclp) { acl_free(aclp); + aclp = NULL; + } /* Copy ownership */ (void) chown(ofname, ifstat->st_uid, ifstat->st_gid); |