Changeset 273 for trunk


Ignore:
Timestamp:
07/21/11 22:05:25 (13 years ago)
Author:
tim
Message:

allowed compiler to be specified via CC environment variable
fixed 3 uninitialized variable problems discovered by clang source analyzer

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r269 r273  
    1414           'lib/void_stack.c']
    1515
     16cc=os.environ.get('CC', 'gcc')
    1617env = Environment(ENV=os.environ,
     18                  CC=cc,
    1719                  CFLAGS=cflags,
    1820                  CPPPATH=['include', '/usr/local/include'],
  • trunk/lib/regfi.c

    r272 r273  
    796796                                          uint32_t max_size, bool strict)
    797797{
    798   REGFI_SUBKEY_LIST* ret_val;
     798  REGFI_SUBKEY_LIST* ret_val = NULL;
    799799  uint32_t i, cell_length, length, elem_size, read_len;
    800800  uint8_t* elements = NULL;
     
    10871087                                        uint32_t num_values, bool strict)
    10881088{
    1089   REGFI_VALUE_LIST* ret_val;
     1089  REGFI_VALUE_LIST* ret_val = NULL;
    10901090  uint32_t i, cell_length, length, read_len;
    10911091  bool unalloc;
  • trunk/src/reglookup-recover.c

    r263 r273  
    588588{
    589589  const range_list_element* cur_elem;
    590   REGFI_NK* key;
     590  REGFI_NK* key = NULL;
    591591  uint32_t i, j;
    592592  int error_code = 0;
Note: See TracChangeset for help on using the changeset viewer.