Fixed uninitialized variable

This warning was accidentally introduced by commit
b7936d5c2337bc976ac831c1c38de563844c36b.  The fix is to
simply initialize the variable to ZFS_DELEG_WHO_UNKNOWN.

  cmd/zfs/zfs_main.c:4460:25: warning: 'who_type' may be
  used uninitialized in this function

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf 2011-08-19 16:24:04 -07:00
parent 29b35200a7
commit 4c069d3494
1 changed files with 1 additions and 1 deletions

View File

@ -4457,7 +4457,7 @@ construct_fsacl_list(boolean_t un, struct allow_opts *opts, nvlist_t **nvlp)
while (curr < end) { while (curr < end) {
const char *who; const char *who;
zfs_deleg_who_type_t who_type; zfs_deleg_who_type_t who_type = ZFS_DELEG_WHO_UNKNOWN;
char *endch; char *endch;
char *delim = strchr(curr, ','); char *delim = strchr(curr, ',');
char errbuf[256]; char errbuf[256];