diff options
Diffstat (limited to 'dimension/main.c')
-rw-r--r-- | dimension/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dimension/main.c b/dimension/main.c index 53b8288..a03762f 100644 --- a/dimension/main.c +++ b/dimension/main.c @@ -89,6 +89,8 @@ main(int argc, char **argv) { case 'w': { + dmnsn_assert(optarg, "NULL argument."); + char *endptr; width = strtoul(optarg, &endptr, 10); if (*endptr != '\0' || endptr == optarg) { @@ -99,6 +101,8 @@ main(int argc, char **argv) { } case 'h': { + dmnsn_assert(optarg, "NULL argument."); + char *endptr; height = strtoul(optarg, &endptr, 10); if (*endptr != '\0' || endptr == optarg) { @@ -110,6 +114,8 @@ main(int argc, char **argv) { case DMNSN_OPT_THREADS: { + dmnsn_assert(optarg, "NULL argument."); + char *endptr; nthreads = strtoul(optarg, &endptr, 10); if (*endptr != '\0' || endptr == optarg) { |