fix for warning C4204: non-constant aggregate initializer
Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
575200952a
commit
8321939c90
2 changed files with 7 additions and 3 deletions
|
|
@ -315,8 +315,9 @@ static int readdir_copy_entry(
|
|||
lookup_entry(args->root, args->state->session,
|
||||
&args->state->file, entry);
|
||||
} else if (entry->attr_info.type == NF4LNK) {
|
||||
const nfs41_component name = { entry->name,
|
||||
(unsigned short)entry->name_len - 1 };
|
||||
nfs41_component name;
|
||||
name.name = entry->name;
|
||||
name.len = (unsigned short)entry->name_len - 1;
|
||||
/* look up the symlink target to see whether it's a directory */
|
||||
lookup_symlink(args->root, args->state->session,
|
||||
&args->state->file, &name, &entry->attr_info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue