uhtml: fix wrong open error handling (fd 0 != fd 1) (thanks BurnZeZ)

This commit is contained in:
cinap_lenrek 2013-06-21 02:37:10 +02:00
parent 41208add72
commit f99007281d

View file

@ -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;