mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
ntok must be greater than or equal to 3, not 2
This commit is contained in:
parent
afd6acb383
commit
fd31012b2c
1 changed files with 2 additions and 2 deletions
|
@ -182,9 +182,9 @@ xstat(int first)
|
|||
readfile(fd);
|
||||
for(i=0; i<nline; i++){
|
||||
tokens(i);
|
||||
if(ntok < 2)
|
||||
if(ntok < 3)
|
||||
continue;
|
||||
if(strcmp(tok[0], "siblings") == 0 && ntok >= 2){
|
||||
if(strcmp(tok[0], "siblings") == 0 && ntok >= 3){
|
||||
numcores = atoll(tok[2]);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue