[3147] in BarnOwl Developers
[barnowl/barnowl] 6f7d4f: Pass initval to owl_variable_dict_newvar_bool as i...
daemon@ATHENA.MIT.EDU (noreply@github.com)
Tue Jul 19 02:26:48 2011
Date: Mon, 18 Jul 2011 23:26:45 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: https://github.com/barnowl/barnowl
Commit: 6f7d4f6001eb475eed5eb55eed0ab6e14ee65e00
https://github.com/barnowl/barnowl/commit/6f7d4f6001eb475eed5eb55eed0ab6e14ee65e00
Author: David Benjamin <davidben@mit.edu>
Date: 2011-07-18 (Mon, 18 Jul 2011)
Changed paths:
M variable.c
Log Message:
-----------
Pass initval to owl_variable_dict_newvar_bool as int, not bool
While bool is ostensibly cleaner, the rest of the code dealing with bool
owl_variables treats it as an int. Switching only this one results in
valgrind complaining about conditioning on uninitialized values because
we end up casting bool* to int*.