File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -554,7 +554,6 @@ static byte *fts_zip_read_word(
554
554
void *null = nullptr ;
555
555
byte *ptr = word->f_str ;
556
556
int flush = Z_NO_FLUSH;
557
- bool read_something = false ;
558
557
559
558
/* Either there was an error or we are at the Z_STREAM_END. */
560
559
if (zip->status != Z_OK) {
@@ -605,7 +604,6 @@ static byte *fts_zip_read_word(
605
604
606
605
word->f_len = len;
607
606
len = 0 ;
608
- read_something = true ;
609
607
}
610
608
break ;
611
609
@@ -634,9 +632,7 @@ static byte *fts_zip_read_word(
634
632
ut_ad (word->f_len == strlen ((char *)ptr));
635
633
}
636
634
637
- return ((zip->status == Z_OK || zip->status == Z_STREAM_END) && read_something
638
- ? ptr
639
- : nullptr );
635
+ return (zip->status == Z_OK || zip->status == Z_STREAM_END ? ptr : nullptr );
640
636
}
641
637
642
638
/* * Callback function to fetch and compress the word in an FTS
You can’t perform that action at this time.
0 commit comments