Changeset 260


Ignore:
Timestamp:
06/16/11 20:42:06 (13 years ago)
Author:
tim
Message:

fixed foolish mistake in error checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/regfi.c

    r257 r260  
    19971997  cur_key = regfi_iterator_cur_key(i);
    19981998  if(cur_key == NULL)
     1999  {
    19992000    regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in find_subkey.");
    20002001    return ret_val;
     2002  }
    20012003
    20022004  if(regfi_find_subkey(i->f, cur_key, name, &new_index))
     
    21002102  cur_key = regfi_iterator_cur_key(i);
    21012103  if(cur_key == NULL)
     2104  {
    21022105    regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in cur_subkey.");
    21032106    return NULL;
     2107  }
    21042108
    21052109  ret_val = regfi_get_subkey(i->f, cur_key, i->cur->cur_subkey);
     
    21292133  cur_key = regfi_iterator_cur_key(i);
    21302134  if(cur_key == NULL)
     2135  {
    21312136    regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in find_value.");
    21322137    return ret_val;
     2138  }
    21332139
    21342140  if(regfi_find_value(i->f, cur_key, name, &new_index))
     
    21612167  cur_key = regfi_iterator_cur_key(i);
    21622168  if(cur_key == NULL)
     2169  {
    21632170    regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in cur_value.");
    21642171    return ret_val;
     2172  }
    21652173
    21662174  ret_val = regfi_get_value(i->f, cur_key, i->cur->cur_value);
Note: See TracChangeset for help on using the changeset viewer.