Print this page
11972 resync smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/check_deref.c
          +++ new/usr/src/tools/smatch/src/check_deref.c
↓ open down ↓ 178 lines elided ↑ open up ↑
 179  179          if (!sym->initializer) {
 180  180                  set_state(my_id, name, sym, &uninitialized);
 181  181                  scoped_state(my_id, name, sym);
 182  182          }
 183  183  }
 184  184  
 185  185  static void match_assign(struct expression *expr)
 186  186  {
 187  187          struct statement *stmt;
 188  188  
 189      -        if (!is_zero(expr->right))
      189 +        if (!expr_is_zero(expr->right))
 190  190                  return;
 191  191  
 192  192          if (__in_fake_assign)
 193  193                  return;
 194  194  
 195  195          FOR_EACH_PTR_REVERSE(big_statement_stack, stmt) {
 196  196                  if (stmt->type == STMT_DECLARATION)
 197  197                          return;
 198  198                  break;
 199  199          } END_FOR_EACH_PTR_REVERSE(stmt);
↓ open down ↓ 97 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX