diff src/channel.c @ 8297:4929eca308b7 v7.4.1441

commit https://github.com/vim/vim/commit/e26643e6bcd6c6c42f5eae78cee2e7950cd3f629 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 21:53:02 2016 +0100 patch 7.4.1441 Problem: Using empty name instead of no name for channel buffer. Solution: Remove the empty name.
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Feb 2016 22:00:04 +0100
parents ac0c43e7af20
children aec8f8ce8e4c
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -794,7 +794,7 @@ find_buffer(char_u *name)
 	buf = buflist_findname(name);
     if (buf == NULL)
     {
-	buf = buflist_new(name == NULL ? (char_u *)"" : name,
+	buf = buflist_new(name == NULL || *name == NUL ? NULL : name,
 					       NULL, (linenr_T)0, BLN_LISTED);
 	buf_copy_options(buf, BCO_ENTER);
 #ifdef FEAT_QUICKFIX