summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pmap.c b/pmap.c
index 38b3629..1e20fe0 100644
--- a/pmap.c
+++ b/pmap.c
@@ -758,7 +758,7 @@ static void range_arguments(const char *optarg)
if ((buf = xstrdup(optarg)) == NULL) {
xerrx(EXIT_FAILURE, "%s: '%s'", _("failed to parse argument"),
- optarg);
+ (optarg?optarg:"(null)"));
}
arg1 = buf;
arg2 = strchr(arg1, ',');