mirror of https://github.com/xzeldon/htop.git
Add DeepCode inline suppression
We just want a non-NUll pointer in the matching pid hashtable. The pointer is not dereferenced anyways.
This commit is contained in:
parent
594409f299
commit
f4e1f4619f
1
htop.c
1
htop.c
|
@ -172,6 +172,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
|
|||
|
||||
while(pid) {
|
||||
unsigned int num_pid = atoi(pid);
|
||||
// deepcode ignore CastIntegerToAddress: we just want a non-NUll pointer here
|
||||
Hashtable_put(flags.pidMatchList, num_pid, (void *) 1);
|
||||
pid = strtok_r(NULL, ",", &saveptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue