diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-21 23:48:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-21 23:48:43 +0200 |
commit | 565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e (patch) | |
tree | 59350b8f5cc04debb154711181138880338a42d8 /src/nvim/eval.c | |
parent | 25bc65698860b8713ef83e32015c0fd43247ebb4 (diff) | |
parent | 11ae6f418d6c8b62ea328e90a0ada3aff1ab9979 (diff) | |
download | rneovim-565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e.tar.gz rneovim-565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e.tar.bz2 rneovim-565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e.zip |
Merge #9146 from justinmk/fix-warnings
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 515dd0e69f..052e0e3f35 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -16461,6 +16461,7 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv, bool retlist) { proftime_T wait_time; + bool profiling = do_profiling == PROF_YES; rettv->v_type = VAR_STRING; rettv->vval.v_string = NULL; @@ -16497,7 +16498,7 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv, xfree(cmdstr); } - if (do_profiling == PROF_YES) { + if (profiling) { prof_child_enter(&wait_time); } @@ -16506,7 +16507,7 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv, char *res = NULL; int status = os_system(argv, input, input_len, &res, &nread); - if (do_profiling == PROF_YES) { + if (profiling) { prof_child_exit(&wait_time); } |