fix(nxp-tools): fix coverity issue

Check the value is not NULL.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: If753e9875153a8e31498addf89202c953abf64ef
This commit is contained in:
Jiafei Pan 2022-09-02 11:59:52 +08:00
parent 2d541cbcbe
commit 4fa0f09739

View file

@ -823,7 +823,9 @@ int main(int argc, char **argv)
}
}
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();
}