aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-23 14:49:40 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-23 14:49:40 +0200
commit2b6d8039d80e874264b124f18bd7b5e3d81bf262 (patch)
tree4333b1631fa4ef489a445eb0f54b3f19b820f42f /src/test.c
parentmem lack (diff)
downloadargparser-2b6d8039d80e874264b124f18bd7b5e3d81bf262.tar.gz
argparser-2b6d8039d80e874264b124f18bd7b5e3d81bf262.tar.bz2
argparser-2b6d8039d80e874264b124f18bd7b5e3d81bf262.tar.xz
c error fixes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/test.c')
-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");
}