mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
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:

committed by
cgzones

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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user