uhtml: fix -c override

front
cinap_lenrek 2012-02-20 20:54:42 +01:00
parent 0a9ae3758c
commit 4eaea14f76
1 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ void
main(int argc, char *argv[])
{
int n, pfd[2], pflag = 0;
char *arg[4], *s, *e, *p, *g, t;
char *arg[4], *s, *e, *p, *g, *a, t;
Rune r;
ARGBEGIN {
@ -101,7 +101,8 @@ main(int argc, char *argv[])
e = buf+nbuf;
t = *e;
*e = 0;
if((cset = attr(s, "encoding")) || (cset = attr(s, "charset"))){
if((a = attr(s, "encoding")) || (a = attr(s, "charset"))){
cset = a;
*e = t;
break;
}