From 55676888049df78935e5aa9ddd0aa31fa0898e99 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 1 May 2026 19:01:03 -0400 Subject: explicitly check if option name is NULL --- src/cli/stasis/args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/stasis/args.c b/src/cli/stasis/args.c index e1c49fe..eb096bc 100644 --- a/src/cli/stasis/args.c +++ b/src/cli/stasis/args.c @@ -59,7 +59,7 @@ static int get_option_max_width(struct option option[]) { int i = 0; int max = 0; const int indent = 4; - while (option[i].name != 0) { + while (option[i].name != NULL) { int len = (int) strlen(option[i].name); if (option[i].has_arg) { len += indent; -- cgit