summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Hill.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hill.cxx b/src/Hill.cxx
index d79f4ad..f45c197 100644
--- a/src/Hill.cxx
+++ b/src/Hill.cxx
@@ -246,7 +246,7 @@ void
Hills::sort(SortType t) {
int (*cmp)(const void *, const void *);
- if (!m)
+ if (!m || num < 2)
return;
switch (t) {