mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(linematch): initialize array
gsrc/nvim/linematch.c: In function ‘try_possible_paths’: gsrc/nvim/linematch.c:204:35: warning: ‘from_vals’ may be used uninitialized [-Wmaybe-uninitialized] 204 | size_t unwrapped_idx_from = unwrap_indexes(from_vals, diff_len, ndiffs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
a114a21eff
commit
f5530bf566
@ -186,7 +186,7 @@ static void try_possible_paths(const int *df_iters, const size_t *paths, const i
|
|||||||
{
|
{
|
||||||
if (path_idx == npaths) {
|
if (path_idx == npaths) {
|
||||||
if ((*choice) > 0) {
|
if ((*choice) > 0) {
|
||||||
int from_vals[LN_MAX_BUFS];
|
int from_vals[LN_MAX_BUFS] = { 0 };
|
||||||
const int *to_vals = df_iters;
|
const int *to_vals = df_iters;
|
||||||
const char *current_lines[LN_MAX_BUFS];
|
const char *current_lines[LN_MAX_BUFS];
|
||||||
for (size_t k = 0; k < ndiffs; k++) {
|
for (size_t k = 0; k < ndiffs; k++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user