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 2d11cb7..c639099 100644
--- a/src/memview.c
+++ b/src/memview.c
@@ -737,7 +737,7 @@ input(const char *prompt)
}
out:
- return ctx.input.data;
+ return (strlen(ctx.input.data) ? ctx.input.data : NULL);
}
static void