From c49964babacb88b71ad3aaa2cee2e5a69d537d60 Mon Sep 17 00:00:00 2001 From: Ben Winston Date: Tue, 18 Jun 2024 12:06:03 -0400 Subject: bugfix: verify BOOKI_FILE variable is not empty --- booki.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'booki.c') diff --git a/booki.c b/booki.c index 682f333..1738f9f 100644 --- a/booki.c +++ b/booki.c @@ -1050,7 +1050,7 @@ void help(bool err) { /*** the main event ***/ int main(int argc, char* argv[]) { char* booki_file = getenv("BOOKI_FILE"); - if (!booki_file) { + if (!booki_file || strlen(booki_file) == 0) { printf("expecting BOOKI_FILE variable\n"); return 1; } -- cgit v1.2.3