summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/eval.c
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2001-05-29 03:32:38 +0000
committergshapiro <gshapiro@FreeBSD.org>2001-05-29 03:32:38 +0000
commit2dc2275139b5c4c3fa7035658f71e8f17ffe01c7 (patch)
treea259d9b4e07b5c8f9b1aba04eed12119b7afff0d /usr.bin/m4/eval.c
parent22e09e1bf0c4a5d77bced6958b0010af854be290 (diff)
downloadFreeBSD-src-2dc2275139b5c4c3fa7035658f71e8f17ffe01c7.zip
FreeBSD-src-2dc2275139b5c4c3fa7035658f71e8f17ffe01c7.tar.gz
Make sure the len() builtin always returns an answer. Previously,
len(`') didn't return an answer. Now it returns 0. PR: bin/12942 MFC after: 5 days
Diffstat (limited to 'usr.bin/m4/eval.c')
-rw-r--r--usr.bin/m4/eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c
index d2ac3c8..7133013 100644
--- a/usr.bin/m4/eval.c
+++ b/usr.bin/m4/eval.c
@@ -149,8 +149,7 @@ register int td;
* dolen - find the length of the
* argument
*/
- if (argc > 2)
- pbnum((argc > 2) ? strlen(argv[2]) : 0);
+ pbnum((argc > 2) ? strlen(argv[2]) : 0);
break;
case INCRTYPE:
OpenPOWER on IntegriCloud