diff options
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/grep.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 02ce65159..94bcb6002 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -255,7 +255,7 @@ typedef struct grep_list_data_t { | |||
255 | #endif | 255 | #endif |
256 | #define ALLOCATED 1 | 256 | #define ALLOCATED 1 |
257 | #define COMPILED 2 | 257 | #define COMPILED 2 |
258 | int flg_mem_alocated_compiled; | 258 | int flg_mem_allocated_compiled; |
259 | } grep_list_data_t; | 259 | } grep_list_data_t; |
260 | 260 | ||
261 | #if !ENABLE_EXTRA_COMPAT | 261 | #if !ENABLE_EXTRA_COMPAT |
@@ -388,8 +388,8 @@ static int grep_file(FILE *file) | |||
388 | #endif | 388 | #endif |
389 | char *match_at; | 389 | char *match_at; |
390 | 390 | ||
391 | if (!(gl->flg_mem_alocated_compiled & COMPILED)) { | 391 | if (!(gl->flg_mem_allocated_compiled & COMPILED)) { |
392 | gl->flg_mem_alocated_compiled |= COMPILED; | 392 | gl->flg_mem_allocated_compiled |= COMPILED; |
393 | #if !ENABLE_EXTRA_COMPAT | 393 | #if !ENABLE_EXTRA_COMPAT |
394 | xregcomp(&gl->compiled_regex, gl->pattern, reflags); | 394 | xregcomp(&gl->compiled_regex, gl->pattern, reflags); |
395 | #else | 395 | #else |
@@ -627,9 +627,9 @@ static char *add_grep_list_data(char *pattern) | |||
627 | grep_list_data_t *gl = xzalloc(sizeof(*gl)); | 627 | grep_list_data_t *gl = xzalloc(sizeof(*gl)); |
628 | gl->pattern = pattern; | 628 | gl->pattern = pattern; |
629 | #if ENABLE_FEATURE_CLEAN_UP | 629 | #if ENABLE_FEATURE_CLEAN_UP |
630 | gl->flg_mem_alocated_compiled = flg_used_mem; | 630 | gl->flg_mem_allocated_compiled = flg_used_mem; |
631 | #else | 631 | #else |
632 | /*gl->flg_mem_alocated_compiled = 0;*/ | 632 | /*gl->flg_mem_allocated_compiled = 0;*/ |
633 | #endif | 633 | #endif |
634 | return (char *)gl; | 634 | return (char *)gl; |
635 | } | 635 | } |
@@ -845,9 +845,9 @@ int grep_main(int argc UNUSED_PARAM, char **argv) | |||
845 | grep_list_data_t *gl = (grep_list_data_t *)pattern_head_ptr->data; | 845 | grep_list_data_t *gl = (grep_list_data_t *)pattern_head_ptr->data; |
846 | 846 | ||
847 | pattern_head = pattern_head->link; | 847 | pattern_head = pattern_head->link; |
848 | if (gl->flg_mem_alocated_compiled & ALLOCATED) | 848 | if (gl->flg_mem_allocated_compiled & ALLOCATED) |
849 | free(gl->pattern); | 849 | free(gl->pattern); |
850 | if (gl->flg_mem_alocated_compiled & COMPILED) | 850 | if (gl->flg_mem_allocated_compiled & COMPILED) |
851 | regfree(&gl->compiled_regex); | 851 | regfree(&gl->compiled_regex); |
852 | free(gl); | 852 | free(gl); |
853 | free(pattern_head_ptr); | 853 | free(pattern_head_ptr); |