# HG changeset patch # User Markus Bröker # Date 1239879075 -7200 # Node ID e87e0fe4a7dbcf15920dffcff0800097a4b616de # Parent 49e0babccb237671fe6c6db72dda4fc6f06ab227 clplaner: Avoid a segfault on Wed May 27 20:00 CET 2009 * The IndexShaker would crash on the last two teams - fixed committer: Markus Bröker diff --git a/clplaner.c b/clplaner.c --- a/clplaner.c +++ b/clplaner.c @@ -107,6 +107,12 @@ int i, j, k; /* + * Who wins the Title? + */ + if (teams == 1) + return; + + /* * swap the index MAXLOOP times... */ for (i = 0; i < MAXLOOP; i++) {