Print this page
OS-1576 Sundry uninitialised variables
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/zoneadmd/zoneadmd.c
          +++ new/usr/src/cmd/zoneadmd/zoneadmd.c
↓ open down ↓ 1240 lines elided ↑ open up ↑
1241 1241      uint_t n_desc)
1242 1242  {
1243 1243          ucred_t *uc = NULL;
1244 1244          const priv_set_t *eset;
1245 1245  
1246 1246          zone_state_t zstate;
1247 1247          zone_cmd_t cmd;
1248 1248          boolean_t debug;
1249 1249          zone_cmd_arg_t *zargp;
1250 1250  
1251      -        boolean_t kernelcall;
     1251 +        boolean_t kernelcall = B_TRUE;
1252 1252  
1253 1253          int rval = -1;
1254 1254          uint64_t uniqid;
1255 1255          zoneid_t zoneid = -1;
1256 1256          zlog_t zlog;
1257 1257          zlog_t *zlogp;
1258 1258          zone_cmd_rval_t *rvalp;
1259 1259          size_t rlen = getpagesize(); /* conservative */
1260 1260          fs_callback_t cb;
1261 1261          brand_handle_t bh;
↓ open down ↓ 1185 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX