diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-11-24 22:05:06 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-11-24 22:05:06 +0000 |
commit | 85be2846c3e282e56c3e11a90d0a307bc4dd3e67 (patch) | |
tree | 1b07ef2aa6924e57c7851b1a97837b9259a281f0 | |
parent | c8011f4bfd1e30ff14170e645992a7482e6edc06 (diff) | |
download | termo-85be2846c3e282e56c3e11a90d0a307bc4dd3e67.tar.gz termo-85be2846c3e282e56c3e11a90d0a307bc4dd3e67.tar.xz termo-85be2846c3e282e56c3e11a90d0a307bc4dd3e67.zip |
Make sure l is always initialised in termkey_snprint_key()
-rw-r--r-- | termkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |