summaryrefslogtreecommitdiff
path: root/sys/src/cmd/uhtml.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-06-21 02:37:10 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-06-21 02:37:10 +0200
commitf99007281d0080f9369ae502421304b37f0625a9 (patch)
tree27a39e8676d699a3ccca101f836cf5e257e33a6d /sys/src/cmd/uhtml.c
parent41208add722b0e572c1fae65b4184088a61ee3b1 (diff)
uhtml: fix wrong open error handling (fd 0 != fd 1) (thanks BurnZeZ)
Diffstat (limited to 'sys/src/cmd/uhtml.c')
-rw-r--r--sys/src/cmd/uhtml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/uhtml.c b/sys/src/cmd/uhtml.c
index 7c612de9e..08e512354 100644
--- a/sys/src/cmd/uhtml.c
+++ b/sys/src/cmd/uhtml.c
@@ -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;