aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;