summaryrefslogtreecommitdiffstats
path: root/OpenFilesScreen.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-24 12:16:51 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-24 12:16:51 -0300
commit446d86c7a24382c13103ca11c09bba69b61aafce (patch)
treec540138a12c511da4a4d5ea2b086ce32811cf840 /OpenFilesScreen.c
parent2fdebf6a2996b79699d12a0525321dead86f8081 (diff)
Let's see if this assert makes static analyzers happier.
Diffstat (limited to 'OpenFilesScreen.c')
-rw-r--r--OpenFilesScreen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c
index d17b1ea0..7dfc32a9 100644
--- a/OpenFilesScreen.c
+++ b/OpenFilesScreen.c
@@ -115,6 +115,7 @@ static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(pid_t pid) {
fdata = nextFile;
item = &(fdata->data);
}
+ assert(cmd >= 0 && cmd <= 0xff);
item->data[cmd] = entry;
}
pdata->error = pclose(fd);

© 2014-2024 Faster IT GmbH | imprint | privacy policy