aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index 0dbb420..fbd8ada 100644
--- a/src/test.c
+++ b/src/test.c
@@ -75,7 +75,7 @@ int main(int argc, char** argv)
i = 0;
arr = args_opts_get("--l");
for (n = args_opts_get_count("--l"); i < n; i++)
- printf("%s\n", *(arr + i));
+ printf("%s\n", *(arr + i) == NULL ? "(null)" : *(arr + i));
if (n == 0)
printf("--l(--lines) is used without and arguments\n");
}