"prevent" bug 25425 is a false positive, but it's a good practice
to check function arguments before using them
Change-Id: I884803613b670d1126120a689bb21ac78e87b8ab
if (!dump && !check)
printf("%s\n", name);
if (!dump && !check)
printf("%s\n", name);
- if ((check || dump) && name && !strcmp(name, app_name)) {
+ if ((check || dump) && name && app_name && !strcmp(name, app_name)) {
app_name_matched = true;
_print_module_legend();
app_name_matched = true;
_print_module_legend();