From 85be2846c3e282e56c3e11a90d0a307bc4dd3e67 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Mon, 24 Nov 2008 22:05:06 +0000 Subject: Make sure l is always initialised in termkey_snprint_key() --- termkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termkey.c b/termkey.c index b5868cd..b9b2ce0 100644 --- a/termkey.c +++ b/termkey.c @@ -844,7 +844,7 @@ static termkey_keysym register_c0_full(termkey_t *tk, termkey_keysym sym, int mo size_t termkey_snprint_key(termkey_t *tk, char *buffer, size_t len, termkey_key *key, termkey_format format) { size_t pos = 0; - size_t l; + size_t l = 0; int longmod = format & TERMKEY_FORMAT_LONGMOD; -- cgit v1.2.3-70-g09d2