commit | 16a16ada10df2a6012e8eb964accea899101e52c | [log] [tgz] |
---|---|---|
author | Jiafei Pan <Jiafei.Pan@nxp.com> | Fri Sep 02 11:59:52 2022 +0800 |
committer | Jiafei Pan <Jiafei.Pan@nxp.com> | Tue Dec 06 22:45:36 2022 +0800 |
tree | c7ff97f03c9769302e7892a08d45a6473ac93ec9 | |
parent | 91374fb86f2da5185c6409da42acd25b50b10242 [diff] [blame] |
fix(nxp-tools): fix coverity issue Check the value is not NULL. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Change-Id: If753e9875153a8e31498addf89202c953abf64ef
diff --git a/tools/nxp/create_pbl/create_pbl.c b/tools/nxp/create_pbl/create_pbl.c index 9457a00..792747f 100644 --- a/tools/nxp/create_pbl/create_pbl.c +++ b/tools/nxp/create_pbl/create_pbl.c
@@ -823,7 +823,9 @@ } } - if ((args & MAND_ARG_MASK) != MAND_ARG_MASK) { + if ((args & MAND_ARG_MASK) != MAND_ARG_MASK + || pblimg.rcw_nm == NULL + || pblimg.imagefile == NULL) { print_usage(); }