On Wed, Mar 29, 2017 at 10:09:15AM +0200, Ivan Delalande wrote: > On Sat, Mar 25, 2017 at 11:02:42PM +0300, Alexander Krotov wrote: > > --- a/st.c > > +++ b/st.c > > @@ -2537,7 +2537,7 @@ tresize(int col, int row) > > } > > > > /* allocate any new rows */ > > - for (/* i == minrow */; i < row; i++) { > > + for (/* i = minrow */; i < row; i++) { > > term.line[i] = xmalloc(col * sizeof(Glyph)); > > term.alt[i] = xmalloc(col * sizeof(Glyph)); > > } > > I don't think that's a typo, just a short form for "hey, watch out, > remember we still have `i == minrow` from the last loop here!". ;)
I read it as initialization of i that is safe to uncomment but is unnecessary so it is commented to help non-optimizing compilers.