terminate buffer if size = 0 - sob - simple output bar
(HTM) git clone git://git.codemadness.org/sob
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a4b4f1c4dada4128c004a959c5dd1f40ec340a6e
(DIR) parent 12d2c2bd8352b53400a7808b51ffdc2aa757c753
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:01:44 +0000
terminate buffer if size = 0
Diffstat:
M sob.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/sob.c b/sob.c
@@ -330,6 +330,7 @@ complete_word(void)
size_t oldlen = line.len;
outbuf[0] = '\0';
+ wordbuf[0] = '\0';
line_copywordcursor(wordbuf, sizeof(wordbuf));
if(pipecmd((char**)completewordcmd, wordbuf, outbuf,