Ignore:
Timestamp:
Jul 18, 2015, 5:06:52 PM (9 years ago)
Author:
katerina
Message:

Enhancements and fixes for tickets #374, #375, #376, #377, #378, and #379.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_log_parse_apache.c

    r362 r481  
    6363 * by longjmp' warning. And no, 'volatile' proved insufficient.
    6464 */
    65 static void * sh_dummy_new = NULL;
    66 static void * sh_dummy_fti = NULL;
    67 static void * sh_dummy_ftr = NULL;
     65void * sh_dummy_65_new = NULL;
     66void * sh_dummy_66_fti = NULL;
     67void * sh_dummy_67_ftr = NULL;
    6868
    6969void * sh_eval_fileinfo_apache(char * str)
     
    8888   * Avoids the 'clobbered by longjmp' warning.
    8989   */
    90   sh_dummy_new = (void*) &new;
    91   sh_dummy_fti = (void*) &f_time;
    92   sh_dummy_ftr = (void*) &result;
     90  sh_dummy_65_new = (void*) &new;
     91  sh_dummy_66_fti = (void*) &f_time;
     92  sh_dummy_67_ftr = (void*) &result;
    9393
    9494  if (0 == strncmp("common", str, 6))
     
    109109    }
    110110
    111   if (flag_err_debug == SL_TRUE)
     111  if (flag_err_debug == S_TRUE)
    112112    {
    113113      SH_MUTEX_LOCK(mutex_thread_nolog);
     
    251251  sh_string_add_from_char(re_string, "$");
    252252
    253   if (flag_err_debug == SL_TRUE)
     253  if (flag_err_debug == S_TRUE)
    254254    {
    255255      SH_MUTEX_LOCK(mutex_thread_nolog);
     
    304304  char         tstr[128];
    305305  char         sstr[128];
    306   char      * hstr;
     306  const char * hstr;
    307307  int          res;
    308308  const char **hstr_addr = (const char **) &hstr;
     
    310310  struct sh_fileinfo_apache * info = (struct sh_fileinfo_apache *) fileinfo;
    311311
    312   if (sh_string_len(logline) > 0 && flag_err_debug == SL_TRUE)
     312  if (sh_string_len(logline) > 0 && flag_err_debug == S_TRUE)
    313313    {
    314314      SH_MUTEX_LOCK(mutex_thread_nolog);
     
    409409      record->pid       = PID_INVALID;
    410410
    411       pcre_free(hstr);
     411      pcre_free_substring(hstr);
    412412      return record;
    413413    }
Note: See TracChangeset for help on using the changeset viewer.