aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-27 22:59:10 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-27 22:59:10 +0200
commitace390c5f03c2b87fff617e66ddec3ad75f6a93d (patch)
treed6439bee857c9d0d959222927e28ac861eccb766 /src/test.c
parentderp (diff)
downloadargparser-ace390c5f03c2b87fff617e66ddec3ad75f6a93d.tar.gz
argparser-ace390c5f03c2b87fff617e66ddec3ad75f6a93d.tar.bz2
argparser-ace390c5f03c2b87fff617e66ddec3ad75f6a93d.tar.xz
c fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/test.c')
-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"))
{