diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 4a10a6c2001..e9fab1be3ee 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -3116,7 +3116,7 @@ consider_token (str, len, c, c_extp, cblev, parlev, is_func_or_var) | |||
| 3116 | fvdef = vignore; | 3116 | fvdef = vignore; |
| 3117 | return FALSE; | 3117 | return FALSE; |
| 3118 | } | 3118 | } |
| 3119 | if (strneq (str+len-10, "::operator", 10)) | 3119 | if (len >= 10 && strneq (str+len-10, "::operator", 10)) |
| 3120 | { | 3120 | { |
| 3121 | if (*c_extp & C_AUTO) /* automatic detection of C++ */ | 3121 | if (*c_extp & C_AUTO) /* automatic detection of C++ */ |
| 3122 | *c_extp = (*c_extp | C_PLPL) & ~C_AUTO; | 3122 | *c_extp = (*c_extp | C_PLPL) & ~C_AUTO; |