diff options
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/option.c b/src/option.c index 3f8d037833..a12b3d879a 100644 --- a/src/option.c +++ b/src/option.c @@ -5048,13 +5048,11 @@ static char_u *compile_cap_prog(synblock_T *synblock) else { /* Prepend a ^ so that we only match at one column */ re = concat_str((char_u *)"^", synblock->b_p_spc); - if (re != NULL) { - synblock->b_cap_prog = vim_regcomp(re, RE_MAGIC); - vim_free(re); - if (synblock->b_cap_prog == NULL) { - synblock->b_cap_prog = rp; /* restore the previous program */ - return e_invarg; - } + synblock->b_cap_prog = vim_regcomp(re, RE_MAGIC); + vim_free(re); + if (synblock->b_cap_prog == NULL) { + synblock->b_cap_prog = rp; /* restore the previous program */ + return e_invarg; } } |