aboutsummaryrefslogtreecommitdiff
path: root/src/lsp
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-15 22:30:16 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-15 22:30:16 +0330
commitc55497afe921a4979290dc495e5811b045e0a14a (patch)
tree54a07d5ffa7f4746489e3f06ed1d7312d378613e /src/lsp
parentuninit: track aggregate fills per part, sticky computed-index fills, &a[k] an... (diff)
lsp: initialize locals set under a found flag (definite assignment)work/uninit-locals
Diffstat (limited to 'src/lsp')
-rw-r--r--src/lsp/server.zc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lsp/server.zc b/src/lsp/server.zc
index 79afb36..0a042b8 100644
--- a/src/lsp/server.zc
+++ b/src/lsp/server.zc
@@ -1791,7 +1791,7 @@ int hm_decl(int base, int q, int le) {
// the struct body, so hover_scan (which reads column 0) does not find them.
// returns 1 when the hovered word is such a name.
int hover_method(int i) {
- int base = doff[i], size = dsize[i], ls = 0, le, q, p, e, k, cs, pv, found = 0, sg, se, n;
+ int base = doff[i], size = dsize[i], ls = 0, le, q, p, e, k, cs, pv, found = 0, sg = 0, se, n;
while (ls < size && !found) {
le = ls;
while (le < size && dc(base, le) != 10) le++;
@@ -2568,7 +2568,7 @@ int hover_source_function(int i) {
// (the last such one before the cursor, else the first). hdl and hdle are the typedef word and the end
// of the ;, and hs_tname is where the name is.
int hover_typedef(int i) {
- int t = 0, w, depth, last, found = -1, first = -1, fend, fname, hend, hname_at;
+ int t = 0, w, depth, last, found = -1, first = -1, fend = 0, fname = 0, hend = 0, hname_at = 0;
fm_lex(i);
while (t < fm_nt) {
if (fm_k[t] == 7) break;