ShellPkg: Refine code style to avoid potential NullPointer dereference.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16161 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -328,6 +328,8 @@ ValidateAndCopyFiles(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ASSERT (CleanFilePathStr != NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// If we are trying to copy multiple files... make sure we got a directory for the target...
|
// If we are trying to copy multiple files... make sure we got a directory for the target...
|
||||||
//
|
//
|
||||||
|
@ -289,6 +289,8 @@ ValidateAndMoveFiles(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ASSERT (CleanFilePathStr != NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get and validate the destination location
|
// Get and validate the destination location
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user