Changeset 481 for trunk/src/sh_log_parse_apache.c
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_parse_apache.c
r362 r481 63 63 * by longjmp' warning. And no, 'volatile' proved insufficient. 64 64 */ 65 static void * sh_dummy_new = NULL;66 static void * sh_dummy_fti = NULL;67 static void * sh_dummy_ftr = NULL;65 void * sh_dummy_65_new = NULL; 66 void * sh_dummy_66_fti = NULL; 67 void * sh_dummy_67_ftr = NULL; 68 68 69 69 void * sh_eval_fileinfo_apache(char * str) … … 88 88 * Avoids the 'clobbered by longjmp' warning. 89 89 */ 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; 93 93 94 94 if (0 == strncmp("common", str, 6)) … … 109 109 } 110 110 111 if (flag_err_debug == S L_TRUE)111 if (flag_err_debug == S_TRUE) 112 112 { 113 113 SH_MUTEX_LOCK(mutex_thread_nolog); … … 251 251 sh_string_add_from_char(re_string, "$"); 252 252 253 if (flag_err_debug == S L_TRUE)253 if (flag_err_debug == S_TRUE) 254 254 { 255 255 SH_MUTEX_LOCK(mutex_thread_nolog); … … 304 304 char tstr[128]; 305 305 char sstr[128]; 306 c har* hstr;306 const char * hstr; 307 307 int res; 308 308 const char **hstr_addr = (const char **) &hstr; … … 310 310 struct sh_fileinfo_apache * info = (struct sh_fileinfo_apache *) fileinfo; 311 311 312 if (sh_string_len(logline) > 0 && flag_err_debug == S L_TRUE)312 if (sh_string_len(logline) > 0 && flag_err_debug == S_TRUE) 313 313 { 314 314 SH_MUTEX_LOCK(mutex_thread_nolog); … … 409 409 record->pid = PID_INVALID; 410 410 411 pcre_free (hstr);411 pcre_free_substring(hstr); 412 412 return record; 413 413 }
Note:
See TracChangeset
for help on using the changeset viewer.