Mercurial > vim
changeset 6759:b019669eee53 v7.4.701
patch 7.4.701
Problem: Compiler warning for using uninitialized variable. (Yasuhiro
Matsumoto)
Solution: Initialize it.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 15 Apr 2015 14:27:49 +0200 |
parents | fddea8f64a51 |
children | d4bb6110de58 |
files | src/hardcopy.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hardcopy.c +++ b/src/hardcopy.c @@ -2513,7 +2513,7 @@ mch_print_init(psettings, jobname, force props = enc_canon_props(p_encoding); if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE))) { - int cmap_first; + int cmap_first = 0; p_mbenc_first = NULL; for (cmap = 0; cmap < (int)NUM_ELEMENTS(prt_ps_mbfonts); cmap++)