commit | d0648192ab892f41213db3a3d92b0619de995e3d | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Sat Apr 21 22:37:13 2007 +0000 |
committer | rsc <devnull@localhost> | Sat Apr 21 22:37:13 2007 +0000 |
tree | 9e1a391cec70ca58f3dce33cb9c4f1199f6439af | |
parent | 14b4a4702c719bf185dde797999a0ba5cad5465f [diff] [blame] |
warn about \w no arg
diff --git a/src/cmd/htmlroff/t11.c b/src/cmd/htmlroff/t11.c index 53d68aa..dd1dd75 100644 --- a/src/cmd/htmlroff/t11.c +++ b/src/cmd/htmlroff/t11.c
@@ -72,8 +72,13 @@ { Rune *a; Rune buf[40]; - + static Rune zero; + a = getqarg(); + if(a == nil){ + warn("no arg for \\w"); + a = &zero; + } runesnprint(buf, sizeof buf, "%ld", runestrlen(a)); pushinputstring(buf); nr(L("st"), 0);