Mercurial > hg > dmlib
changeset 677:4b7cccaa62c0
Set result variables to zero.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Apr 2013 15:05:43 +0300 |
parents | 030b2a8e04d5 |
children | 4a08ce0997bc |
files | dmeval.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dmeval.c Tue Apr 16 15:04:40 2013 +0300 +++ b/dmeval.c Tue Apr 16 15:05:43 2013 +0300 @@ -873,12 +873,12 @@ int dm_eval_exec(DMEvalContext *ev, DMEvalNode *tree, DMValue *presult) { - DMValue result; + DMValue result = 0; DMEvalNode *node = tree; while (node != NULL) { - DMValue tmp; + DMValue tmp = 0; switch (node->op) {