]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: don’t used uninitialized uu[0]
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Jun 2025 01:17:34 +0000 (18:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:39 +0000 (17:12 -0700)
commitd7fd90d22da38356ab7e1c4509d471b56e47bc41
tree8b150e46b20301fa5cfbb0bb9dd3d58664ff03bd
parentfd59e4a955970b2a6c2796578f1bc8b57604f731
factor: don’t used uninitialized uu[0]

In practice there’s no bug but we might as well avoid the
undefined behavior.
* src/factor.c (hi_is_set): New static function.
(factor_insert_large, prime2_p, print_factors_single): Use it.
src/factor.c