Mercurial > vim
comparison src/tag.c @ 25587:35562f3207d1 v8.2.3330
patch 8.2.3330: Coverity reports using uninitialized field
Commit: https://github.com/vim/vim/commit/7deb4115ef72c0468cd6f9cc5f036d5c405641d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 11 17:01:45 2021 +0200
patch 8.2.3330: Coverity reports using uninitialized field
Problem: Coverity reports using uninitialized field.
Solution: Initialize the field early.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 11 Aug 2021 17:15:04 +0200 |
parents | e9065d299e9b |
children | ca61340ac1b9 |
comparison
equal
deleted
inserted
replaced
25586:095dc4ace359 | 25587:35562f3207d1 |
---|---|
1678 case TC_SMART: p_ic = ignorecase_opt(pat, TRUE, TRUE); break; | 1678 case TC_SMART: p_ic = ignorecase_opt(pat, TRUE, TRUE); break; |
1679 } | 1679 } |
1680 | 1680 |
1681 help_save = curbuf->b_help; | 1681 help_save = curbuf->b_help; |
1682 orgpat.pat = pat; | 1682 orgpat.pat = pat; |
1683 orgpat.regmatch.regprog = NULL; | |
1683 vimconv.vc_type = CONV_NONE; | 1684 vimconv.vc_type = CONV_NONE; |
1684 | 1685 |
1685 /* | 1686 /* |
1686 * Allocate memory for the buffers that are used | 1687 * Allocate memory for the buffers that are used |
1687 */ | 1688 */ |