uhtml: fix wrong open error handling (fd 0 != fd 1) (thanks BurnZeZ)
This commit is contained in:
parent
41208add72
commit
f99007281d
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ main(int argc, char *argv[])
|
|||
|
||||
if(*argv){
|
||||
close(0);
|
||||
if(open(*argv, OREAD) != 1)
|
||||
if(open(*argv, OREAD) != 0)
|
||||
sysfatal("open: %r");
|
||||
}
|
||||
nbuf = 0;
|
||||
|
|
Loading…
Reference in a new issue