From: Hao Wu Date: Thu, 14 Sep 2017 08:02:42 +0000 (+0800) Subject: MdeModulePkg/UdfDxe: Avoid short (single character) variable name X-Git-Tag: edk2-stable201903~3383 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=32492fee2d7e7116b5970266915285d043e0c0e1;hp=077f8c4372cc68efea91243dd1fe77d41315444d;p=mirror_edk2.git MdeModulePkg/UdfDxe: Avoid short (single character) variable name In ResolveSymlink(), replace the following variable: CHAR16 *C; with: CHAR16 *Char; Cc: Paulo Alcantara Cc: Ruiyu Ni Cc: Star Zeng Cc: Eric Dong Cc: Dandan Bi Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu Reviewed-by: Paulo Alcantara Reviewed-by: Star Zeng --- diff --git a/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c b/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c index 8fcc508c41..90862932fd 100644 --- a/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c +++ b/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c @@ -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; }