diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2001-05-29 03:32:38 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2001-05-29 03:32:38 +0000 |
commit | 2dc2275139b5c4c3fa7035658f71e8f17ffe01c7 (patch) | |
tree | a259d9b4e07b5c8f9b1aba04eed12119b7afff0d /usr.bin/m4/eval.c | |
parent | 22e09e1bf0c4a5d77bced6958b0010af854be290 (diff) | |
download | FreeBSD-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.c | 3 |
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: |