Changeset 524 in svn for trunk/coverager.c


Ignore:
Timestamp:
2008-02-18T11:48:42Z (8 years ago)
Author:
Xuefer
Message:

avoid xcache.coveragedump_directory ending with \0 in phpinfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager.c

    r485 r524  
    470470
    471471    if (cfg_get_string("xcache.coveragedump_directory", &xc_coveragedump_dir) == SUCCESS && xc_coveragedump_dir) {
     472        xc_coveragedump_dir = pestrdup(xc_coveragedump_dir, 1);
    472473        int len = strlen(xc_coveragedump_dir);
    473474        if (len) {
     
    477478        }
    478479        if (!strlen(xc_coveragedump_dir)) {
     480            pefree(xc_coveragedump_dir, 1);
    479481            xc_coveragedump_dir = NULL;
    480482        }
     
    490492    }
    491493    if (xc_coveragedump_dir) {
     494        pefree(xc_coveragedump_dir, 1);
    492495        xc_coveragedump_dir = NULL;
    493496    }
Note: See TracChangeset for help on using the changeset viewer.