1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-02 13:59:49 +02:00
This commit is contained in:
Jim Meyering
1993-12-23 00:08:23 +00:00
parent 797585985f
commit d7daf7444e
6 changed files with 67 additions and 9 deletions
+3
View File
@@ -316,6 +316,9 @@ toarith (v)
case string:
i = 0;
cp = v->u.s;
/* Don't interpret the empty string as an integer. */
if (*cp == 0)
return 0;
neg = (*cp == '-');
if (neg)
cp++;