mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
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
This commit is contained in:
parent
2755dd7100
commit
1d3ebaf302
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77378
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue