(verify_row): if/else with negated condition is confusing. Negate
condition, swap conditional statements.
This commit is contained in:
parent
b11b81da8f
commit
1e17cc77cb
1 changed files with 5 additions and 5 deletions
|
@ -52,12 +52,12 @@ verify_row(int type, int row)
|
|||
int ret_val = 0;
|
||||
int in_mem = (ef_flags(type) & EFF_MEM) != 0;
|
||||
|
||||
|
||||
if (!in_mem) {
|
||||
row_ref = malloc(empfile[type].size);
|
||||
ef_read(type, row, row_ref);
|
||||
} else
|
||||
if (in_mem)
|
||||
row_ref = ef_ptr(type, row);
|
||||
else {
|
||||
row_ref = malloc(empfile[type].size);
|
||||
ef_read(type, row, row_ref);
|
||||
}
|
||||
|
||||
for (i = 0; ca[i].ca_name; ++i) {
|
||||
if (ca[i].ca_flags & NSC_EXTRA)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue