summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {