From 8cb410c63cbec58dc736e160ffe88a67af46e4c9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 26 Nov 2009 22:28:24 +0000 Subject: Tidy up various bits of the paste code, make the data buffer char * and add comments. --- cmd-paste-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-paste-buffer.c') diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c index 11f70f1f..7d13ae0a 100644 --- a/cmd-paste-buffer.c +++ b/cmd-paste-buffer.c @@ -62,7 +62,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) } } - if (pb != NULL && *pb->data != '\0') { + if (pb != NULL) { /* -r means raw data without LF->CR conversion. */ if (cmd_check_flag(data->chflags, 'r')) bufferevent_write(wp->event, pb->data, pb->size); -- cgit