Mercurial > vim
comparison src/evalfunc.c @ 21429:16bc2bd050e0 v8.2.1265
patch 8.2.1265: crash with EXITFREE when split() fails
Commit: https://github.com/vim/vim/commit/7d5e744162c1e971e5a863e89787cadc8e56051c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 21 22:25:51 2020 +0200
patch 8.2.1265: crash with EXITFREE when split() fails
Problem: Crash with EXITFREE when split() fails.
Solution: Restore 'cpoptions'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Jul 2020 22:30:05 +0200 |
parents | 95e6fb6a5c86 |
children | 4dfd00f481fb |
comparison
equal
deleted
inserted
replaced
21428:6dc6978d09ca | 21429:16bc2bd050e0 |
---|---|
7857 } | 7857 } |
7858 if (pat == NULL || *pat == NUL) | 7858 if (pat == NULL || *pat == NUL) |
7859 pat = (char_u *)"[\\x01- ]\\+"; | 7859 pat = (char_u *)"[\\x01- ]\\+"; |
7860 | 7860 |
7861 if (rettv_list_alloc(rettv) == FAIL) | 7861 if (rettv_list_alloc(rettv) == FAIL) |
7862 return; | 7862 goto theend; |
7863 if (typeerr) | 7863 if (typeerr) |
7864 return; | 7864 goto theend; |
7865 | 7865 |
7866 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); | 7866 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); |
7867 if (regmatch.regprog != NULL) | 7867 if (regmatch.regprog != NULL) |
7868 { | 7868 { |
7869 regmatch.rm_ic = FALSE; | 7869 regmatch.rm_ic = FALSE; |
7896 } | 7896 } |
7897 | 7897 |
7898 vim_regfree(regmatch.regprog); | 7898 vim_regfree(regmatch.regprog); |
7899 } | 7899 } |
7900 | 7900 |
7901 theend: | |
7901 p_cpo = save_cpo; | 7902 p_cpo = save_cpo; |
7902 } | 7903 } |
7903 | 7904 |
7904 #ifdef FEAT_FLOAT | 7905 #ifdef FEAT_FLOAT |
7905 /* | 7906 /* |