mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(detect_loop): There's no loop if k->top is NULL.
This commit is contained in:
1 parent
5157fd957e
commit
53e173cca6
1 file changed
+1
-1
+1
-1
@@ -315,7 +315,7 @@ scan_zeros (struct item *k)
|
||||
static void
|
||||
detect_loop (struct item *k)
|
||||
{
|
||||
if (k->count > 0)
|
||||
if (k->count > 0 && k->top)
|
||||
{
|
||||
while (k && k->count > 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user