coverity appeasement
This commit is contained in:
parent
fe6e291f59
commit
7047e014c9
@ -174,7 +174,9 @@ void parse_file(pid_t pid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((p->p_flags & IS_TASK)) {
|
if ((p->p_flags & IS_TASK)) {
|
||||||
fscanf(fp, " %lu ", &p->p_memory);
|
if(fscanf(fp, " %lu", &p->p_memory) != 1) {
|
||||||
|
p->p_memory = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p->p_flags |= USED;
|
p->p_flags |= USED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user