aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test.c b/src/test.c
index 9d65b2e..59c5d9c 100644
--- a/src/test.c
+++ b/src/test.c
@@ -69,14 +69,14 @@ int main(int argc, char** argv)
i = 0;
arr = args_opts_get("--line");
for (n = args_opts_get_count("--line"); i < n; i++)
- printf("%s\n", *(arr + i));
+ printf("%s\n", *(arr + i) ? *(arr + i) : "(null)");
}
if (args_opts_used("-L"))
{
i = 0;
arr = args_opts_get("--Line");
for (n = args_opts_get_count("--Line"); i < n; i++)
- printf("%s\n", *(arr + i));
+ printf("%s\n", *(arr + i) ? *(arr + i) : "(null)");
}
if (args_opts_used("--lines"))
{