commit | 6d313bec535d9ccc24f6f82025280a61caad7416 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Sep 22 16:36:25 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Sep 22 16:36:25 2022 +0100 |
tree | 5b21870f647e33771fe1f2f14c20fd7af8925a71 | |
parent | 236ccbf6f8a671a45b773de4b34558ecfdf9ac02 [diff] [blame] |
patch 9.0.0547: looping over empty out_loop[] entries Problem: Looping over empty out_loop[] entries. Solution: Store the array size.
diff --git a/src/structs.h b/src/structs.h index 19dc550..31889f6 100644 --- a/src/structs.h +++ b/src/structs.h
@@ -2126,6 +2126,7 @@ // out_loop_stack short var_count; // number of variables defined in a loop } out_loop[MAX_LOOP_DEPTH]; + int out_loop_size; // nr of used entries in out_loop[] }; struct partial_S