mirror of https://github.com/xzeldon/htop.git
Let's see if this assert makes static analyzers happier.
This commit is contained in:
parent
2fdebf6a29
commit
446d86c7a2
|
@ -115,6 +115,7 @@ static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(pid_t pid) {
|
||||||
fdata = nextFile;
|
fdata = nextFile;
|
||||||
item = &(fdata->data);
|
item = &(fdata->data);
|
||||||
}
|
}
|
||||||
|
assert(cmd >= 0 && cmd <= 0xff);
|
||||||
item->data[cmd] = entry;
|
item->data[cmd] = entry;
|
||||||
}
|
}
|
||||||
pdata->error = pclose(fd);
|
pdata->error = pclose(fd);
|
||||||
|
|
Loading…
Reference in New Issue