mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-02 13:59:49 +02:00
.
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user