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:
Qiu Shumin 2014-09-23 06:20:59 +00:00 committed by shenshushi
parent b4dfada85d
commit 427d61ad4a
2 changed files with 5 additions and 1 deletions

View File

@ -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...
//

View File

@ -289,6 +289,8 @@ ValidateAndMoveFiles(
}
}
ASSERT (CleanFilePathStr != NULL);
//
// Get and validate the destination location
//