diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-24 12:16:51 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-24 12:16:51 -0300 |
commit | 446d86c7a24382c13103ca11c09bba69b61aafce (patch) | |
tree | c540138a12c511da4a4d5ea2b086ce32811cf840 /OpenFilesScreen.c | |
parent | 2fdebf6a2996b79699d12a0525321dead86f8081 (diff) |
Let's see if this assert makes static analyzers happier.
Diffstat (limited to 'OpenFilesScreen.c')
-rw-r--r-- | OpenFilesScreen.c | 1 |
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); |