Mercurial > vim
comparison src/eval.c @ 8196:cbb2f84da063 v7.4.1391
commit https://github.com/vim/vim/commit/4db20ab091330e460f08651d6052afd0536c507a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 22 21:48:30 2016 +0100
patch 7.4.1391
Problem: Warning for uninitialzed variable.
Solution: Set it to zero. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 22 Feb 2016 22:00:04 +0100 |
parents | fa2668601c7a |
children | c16aa03d8db5 |
comparison
equal
deleted
inserted
replaced
8195:82aeeeb703e0 | 8196:cbb2f84da063 |
---|---|
9487 * "atan()" function | 9487 * "atan()" function |
9488 */ | 9488 */ |
9489 static void | 9489 static void |
9490 f_atan(typval_T *argvars, typval_T *rettv) | 9490 f_atan(typval_T *argvars, typval_T *rettv) |
9491 { | 9491 { |
9492 float_T f; | 9492 float_T f = 0.0; |
9493 | 9493 |
9494 rettv->v_type = VAR_FLOAT; | 9494 rettv->v_type = VAR_FLOAT; |
9495 if (get_float_arg(argvars, &f) == OK) | 9495 if (get_float_arg(argvars, &f) == OK) |
9496 rettv->vval.v_float = atan(f); | 9496 rettv->vval.v_float = atan(f); |
9497 else | 9497 else |