mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/UdfDxe: Avoid short (single character) variable name
In ResolveSymlink(), replace the following variable: CHAR16 *C; with: CHAR16 *Char; Cc: Paulo Alcantara <pcacjr@zytor.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Dandan Bi <dandan.bi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Paulo Alcantara <pcacjr@zytor.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
077f8c4372
commit
32492fee2d
|
@ -2045,7 +2045,7 @@ ResolveSymlink (
|
|||
UDF_PATH_COMPONENT *PathComp;
|
||||
UINT8 PathCompLength;
|
||||
CHAR16 FileName[UDF_FILENAME_LENGTH];
|
||||
CHAR16 *C;
|
||||
CHAR16 *Char;
|
||||
UINTN Index;
|
||||
UINT8 CompressionId;
|
||||
UDF_FILE_INFO PreviousFile;
|
||||
|
@ -2122,24 +2122,24 @@ ResolveSymlink (
|
|||
return EFI_VOLUME_CORRUPTED;
|
||||
}
|
||||
|
||||
C = FileName;
|
||||
Char = FileName;
|
||||
for (Index = 1; Index < PathCompLength; Index++) {
|
||||
if (CompressionId == 16) {
|
||||
*C = *(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier +
|
||||
*Char = *(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier +
|
||||
Index) << 8;
|
||||
Index++;
|
||||
} else {
|
||||
*C = 0;
|
||||
*Char = 0;
|
||||
}
|
||||
|
||||
if (Index < Length) {
|
||||
*C |= (CHAR16)(*(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index));
|
||||
*Char |= (CHAR16)(*(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index));
|
||||
}
|
||||
|
||||
C++;
|
||||
Char++;
|
||||
}
|
||||
|
||||
*C = L'\0';
|
||||
*Char = L'\0';
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue