aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.l b/main.l
index 9478c16..cae65e7 100644
--- a/main.l
+++ b/main.l
@@ -156,6 +156,9 @@ atou(const char *s)
bool
print_ordinal(void)
{
+ if (positions.ps == NULL)
+ return true;
+
/* Basic binary search */
for (size_t l = 0, r = positions.len - 1, m; l <= r;) {
m = l + (r - l) / 2;