Fix 1 warning and 1 bug.

This commit is contained in:
Damien George 2014-01-22 23:18:50 +00:00
parent 452932ace4
commit f64086f80f
2 changed files with 2 additions and 1 deletions

View File

@ -471,7 +471,7 @@ static void mp_lexer_next_token_into(mp_lexer_t *lex, mp_token_t *tok, bool firs
case 'r': c = 0x0d; break;
case 'x':
{
uint num;
uint num = 0;
if (!get_hex(lex, 2, &num)) {
// TODO error message
assert(0);

View File

@ -190,6 +190,7 @@ void vstr_cut_tail(vstr_t *vstr, int len) {
} else {
vstr->len -= len;
}
vstr->buf[vstr->len] = 0;
}
void vstr_printf(vstr_t *vstr, const char *fmt, ...) {