summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/memview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memview.c b/src/memview.c
index c639099..8c2a792 100644
--- a/src/memview.c
+++ b/src/memview.c
@@ -917,7 +917,7 @@ region_cb(const char *line, void *data)
char *name;
size_t name_sz = region_len_without_name + 1 + strlen(base) + 1;
- if (name_sz > 1 && !(name = malloc(name_sz)))
+ if (!(name = malloc(name_sz)))
err(EXIT_FAILURE, "malloc");
snprintf(name, name_sz, "%.*s %s", region_len_without_name, line, base);