mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
expand: avoid an extraneous warning on 32 bit
* src/expand-common (parse-tab-stops): Exit earlier upon overflow so another warning isn't issued (on 32 bit) in add_tab_stop(). Flagged in https://hydra.nixos.org/build/49499970
This commit is contained in:
1 parent
109ba4441b
commit
3be3da3bec
1 file changed
+2
-3
+2
-3
@@ -126,7 +126,6 @@ parse_tab_stops (char const *stops)
|
||||
{
|
||||
if (! set_extend_size (tabval))
|
||||
{
|
||||
extend_tabval = false;
|
||||
ok = false;
|
||||
break;
|
||||
}
|
||||
@@ -175,7 +174,7 @@ parse_tab_stops (char const *stops)
|
||||
}
|
||||
}
|
||||
|
||||
if (have_tabval)
|
||||
if (ok && have_tabval)
|
||||
{
|
||||
if (extend_tabval)
|
||||
ok &= set_extend_size (tabval);
|
||||
@@ -183,7 +182,7 @@ parse_tab_stops (char const *stops)
|
||||
add_tab_stop (tabval);
|
||||
}
|
||||
|
||||
if (!ok)
|
||||
if (! ok)
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user