Changeset 650415e


Ignore:
Timestamp:
Jul 19, 2011, 2:25:32 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.8
Children:
aec79a1
Parents:
65ff3f4
git-author:
David Benjamin <davidben@mit.edu> (07/19/11 02:00:10)
git-committer:
David Benjamin <davidben@mit.edu> (07/19/11 02:25:32)
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*.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r30d0cf7 r650415e  
    707707}
    708708
    709 void owl_variable_dict_newvar_bool(owl_vardict *vd, const char *name, const char *summ, const char *desc, bool initval)
     709void owl_variable_dict_newvar_bool(owl_vardict *vd, const char *name, const char *summ, const char *desc, int initval)
    710710{
    711711  owl_variable *old = owl_variable_get_var(vd, name);
Note: See TracChangeset for help on using the changeset viewer.