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:
gshapiro 2001-05-29 03:32:38 +00:00
parent 22e09e1bf0
commit 2dc2275139

View File

@ -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: