mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Fix a couple uninitialized variable warnings in the release build.
Reviewed-by: Eliseo Martínez <eliseomarmol@gmail.com> Reviewed-by: Marco Hinz <mh.codebro@gmail.com> Reviewed-by: Björn Linse <bjorn.linse@gmail.com>
This commit is contained in:
parent
c1a3d289d6
commit
2cbe7005c2
@ -2130,7 +2130,7 @@ int mch_print_init(prt_settings_T *psettings, char_u *jobname, int forceit)
|
||||
}
|
||||
|
||||
/* Use first encoding matched if no charset matched */
|
||||
if (p_mbchar == NULL && p_mbenc_first != NULL) {
|
||||
if (p_mbenc_first != NULL && p_mbchar == NULL) {
|
||||
p_mbenc = p_mbenc_first;
|
||||
cmap = effective_cmap;
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ void server_stop(char *endpoint)
|
||||
}
|
||||
}
|
||||
|
||||
if (i == servers.ga_len) {
|
||||
if (i >= servers.ga_len) {
|
||||
ELOG("Not listening on %s", addr);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user