Avoid valid Coverity warning for comparing array to zero.
* gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test pointer element for equality to zero, not that of the cotaining array.
This commit is contained in:
parent
e4d2305adf
commit
b3aa3288a9
1 changed files with 1 additions and 1 deletions
|
@ -2433,7 +2433,7 @@ maybe_warn_alloc_args_overflow (gimple *stmt, const tree args[2],
|
|||
}
|
||||
}
|
||||
|
||||
if (!argrange[0])
|
||||
if (!argrange[0][0])
|
||||
return;
|
||||
|
||||
/* For a two-argument alloc_size, validate the product of the two
|
||||
|
|
Loading…
Add table
Reference in a new issue