aboutsummaryrefslogtreecommitdiff
path: root/paste.c
diff options
context:
space:
mode:
Diffstat (limited to 'paste.c')
-rw-r--r--paste.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/paste.c b/paste.c
index 3644381c..981385e9 100644
--- a/paste.c
+++ b/paste.c
@@ -101,6 +101,9 @@ paste_add(struct paste_stack *ps, char *data, u_int limit)
{
struct paste_buffer *pb;
+ if (*data == '\0')
+ return;
+
while (ARRAY_LENGTH(ps) >= limit)
ARRAY_TRUNC(ps, 1);