Print this page
6139 help gcc figure out variable initialization

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/auditd_plugins/binfile/binfile.c
          +++ new/usr/src/lib/auditd_plugins/binfile/binfile.c
↓ open down ↓ 341 lines elided ↑ open up ↑
 342  342                  freedirlist(activeList);        /* old list */
 343  343                  activeList = listhead;          /* new list */
 344  344                  activeDir = startdir = thisdir;
 345  345                  activeCount = node_count;
 346  346                  (void) pthread_mutex_unlock(&log_mutex);
 347  347          } else {
 348  348                  freedirlist(listhead);
 349  349          }
 350  350  
 351  351          /* Get the minfree value. */
 352      -        if (minfreestr != NULL)
 353      -                temp_minfree = atoi(minfreestr);
      352 +        temp_minfree = atoi(minfreestr);
 354  353  
 355  354          if ((temp_minfree < 0) || (temp_minfree > 100))
 356  355                  temp_minfree = 0;
 357  356  
 358  357          if (minfree != temp_minfree) {
 359  358                  DPRINT((dbfp, "minfree:  old = %d, new = %d\n",
 360  359                      minfree, temp_minfree));
 361  360                  rc = -2;                /* data change */
 362  361                  minfree = temp_minfree;
 363  362          }
↓ open down ↓ 686 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX