diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-23 14:49:40 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-23 14:49:40 +0200 |
commit | 2b6d8039d80e874264b124f18bd7b5e3d81bf262 (patch) | |
tree | 4333b1631fa4ef489a445eb0f54b3f19b820f42f /src/test.c | |
parent | mem lack (diff) | |
download | argparser-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |