Skip to content

Commit

Permalink
Merge pull request #2276 from alanbarr/main_dead_initalisation
Browse files Browse the repository at this point in the history
main: Remove dead initialisation in lregex
  • Loading branch information
masatake authored Oct 30, 2019
2 parents 8375ab7 + ba5ad3f commit b4c29c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/lregex.c
Original file line number Diff line number Diff line change
Expand Up @@ -2631,16 +2631,14 @@ extern void extendRegexTable (struct lregexControlBlock *lcb, const char *src, c

extern void printMultitableStatistics (struct lregexControlBlock *lcb)
{
struct regexTable *table = ptrArrayItem (lcb->tables, 0);

if (ptrArrayCount(lcb->tables) == 0)
return;

fprintf(stderr, "\nMTABLE REGEX STATISTICS of %s\n", getLanguageName (lcb->owner));
fputs("==============================================\n", stderr);
for (unsigned int i = 0; i < ptrArrayCount(lcb->tables); i++)
{
table = ptrArrayItem (lcb->tables, i);
struct regexTable *table = ptrArrayItem (lcb->tables, i);
fprintf(stderr, "%s\n", table->name);
fputs("-----------------------\n", stderr);
for (unsigned int j = 0; j < ptrArrayCount(table->entries); j++)
Expand Down

0 comments on commit b4c29c1

Please sign in to comment.