diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-01 19:01:03 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-11 15:55:54 -0400 |
| commit | f467de54062fed57c37de53d1e89794b5e9eee2a (patch) | |
| tree | b36ae231f6f3bd1d9f5c78c24f17a6d083237ac2 /src/cli/stasis | |
| parent | 6cf418547c51e885648e028e3ec9e167cc32dec3 (diff) | |
| download | stasis-f467de54062fed57c37de53d1e89794b5e9eee2a.tar.gz | |
explicitly check if option name is NULL
Diffstat (limited to 'src/cli/stasis')
| -rw-r--r-- | src/cli/stasis/args.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
