diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-27 22:59:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-27 22:59:10 +0200 |
commit | ace390c5f03c2b87fff617e66ddec3ad75f6a93d (patch) | |
tree | d6439bee857c9d0d959222927e28ac861eccb766 /src/test.c | |
parent | derp (diff) | |
download | argparser-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")) { |