diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-10-08 00:05:50 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-10-08 00:05:50 +0200 |
commit | 91d13bd86198c878b0b89d0ae31a8b8b0c8dd327 (patch) | |
tree | 91454c36b6f377d91324201d317069f16e04a8f8 /src | |
parent | 09e0c96201bd525d1a00fe88cef8b1a8e678d6b7 (diff) | |
download | rneovim-91d13bd86198c878b0b89d0ae31a8b8b0c8dd327.tar.gz rneovim-91d13bd86198c878b0b89d0ae31a8b8b0c8dd327.tar.bz2 rneovim-91d13bd86198c878b0b89d0ae31a8b8b0c8dd327.zip |
hardcopy.c: Fix -Wmaybe-uninitialized warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/hardcopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index 7d4bfd0290..6acf7f395a 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -2105,7 +2105,7 @@ int mch_print_init(prt_settings_T *psettings, char_u *jobname, int forceit) props = enc_canon_props(p_encoding); if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE))) { p_mbenc_first = NULL; - int effective_cmap; + int effective_cmap = 0; for (cmap = 0; cmap < (int)ARRAY_SIZE(prt_ps_mbfonts); cmap++) if (prt_match_encoding((char *)p_encoding, &prt_ps_mbfonts[cmap], &p_mbenc)) { |