valgrind (thanks ciruZ for trying) found uninitialised memory use
in utf_skipcols by x_goto
This commit is contained in:
parent
8213a28403
commit
86d4dee0da
4
lex.c
4
lex.c
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.101 2009/11/21 23:23:18 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.102 2009/12/05 19:44:09 tg Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* states while lexing word
|
* states while lexing word
|
||||||
@ -1326,7 +1326,7 @@ getsc_line(Source *s)
|
|||||||
|
|
||||||
/* Done here to ensure nothing odd happens when a timeout occurs */
|
/* Done here to ensure nothing odd happens when a timeout occurs */
|
||||||
XcheckN(s->xs, xp, LINE);
|
XcheckN(s->xs, xp, LINE);
|
||||||
*xp = '\0';
|
memset(xp, 0, LINE);
|
||||||
s->start = s->str = xp;
|
s->start = s->str = xp;
|
||||||
|
|
||||||
if (have_tty && ksh_tmout) {
|
if (have_tty && ksh_tmout) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user