Mercurial > vim
changeset 6939:ca0990adc2e3 v7.4.788
patch 7.4.788
Problem: Can't build without the crypt feature. (John Marriott)
Solution: Add #ifdef's.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 17 Jul 2015 23:08:29 +0200 |
parents | e4031308afa9 |
children | 0942c7d802ea |
files | src/option.c src/version.c |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -4918,7 +4918,10 @@ do_set(arg, opt_flags) *(char_u **)(varp) = newval; #if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL) - if (!starting && options[opt_idx].indir != PV_KEY + if (!starting +# ifdef FEAT_CRYPT + && options[opt_idx].indir != PV_KEY +# endif && origval != NULL) /* origval may be freed by * did_set_string_option(), make a copy. */ @@ -5717,7 +5720,11 @@ set_string_option(opt_idx, value, opt_fl *varp = s; #if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL) - if (!starting && options[opt_idx].indir != PV_KEY) + if (!starting +# ifdef FEAT_CRYPT + && options[opt_idx].indir != PV_KEY +# endif + ) saved_oldval = vim_strsave(oldval); #endif if ((r = did_set_string_option(opt_idx, varp, TRUE, oldval, NULL,