Print this page
10132 smatch fixes for MDB
Reviewed by: Andy Fiddaman <andy@omniosce.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/mdb/mdb_proc.c
          +++ new/usr/src/cmd/mdb/common/mdb/mdb_proc.c
↓ open down ↓ 1982 lines elided ↑ open up ↑
1983 1983                   * provide external storage for the variable names.
1984 1984                   */
1985 1985                  name = strdup(val);
1986 1986          }
1987 1987  
1988 1988          *equals = '=';
1989 1989  
1990 1990          (void) mdb_nv_insert(&pt->p_env, name, NULL, (uintptr_t)val,
1991 1991              MDB_NV_EXTNAME);
1992 1992  
1993      -        if (equals)
1994      -                *equals = '=';
     1993 +        *equals = '=';
1995 1994  }
1996 1995  
1997 1996  /*
1998 1997   * Clears the internal environment.
1999 1998   */
2000 1999  static void
2001 2000  pt_env_clear(pt_data_t *pt)
2002 2001  {
2003 2002          mdb_var_t *v;
2004 2003          char *val, *name;
↓ open down ↓ 3505 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX