mirror of https://github.com/acidanthera/audk.git
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:
parent
b4dfada85d
commit
427d61ad4a
|
@ -326,7 +326,9 @@ ValidateAndCopyFiles(
|
|||
} else {
|
||||
return SHELL_INVALID_PARAMETER;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ASSERT (CleanFilePathStr != NULL);
|
||||
|
||||
//
|
||||
// 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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue