Skip to content

Commit

Permalink
main: Remove dead initialisation in lregex
Browse files Browse the repository at this point in the history
Detected by clang scan-build
  • Loading branch information
alanbarr committed Oct 28, 2019
1 parent 52347c9 commit ba5ad3f
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 ba5ad3f

Please sign in to comment.