netpbm/netpbm-10.26.22-pbmtext.patch

22 lines
632 B
Diff

--- generator/pbmtext.c
+++ generator/pbmtext.c
@@ -217,7 +217,7 @@
/* logical: we haven't seen any renderable characters yet in
the line.
*/
- struct glyph * lastGlyphP;
+ struct glyph * lastGlyphP = NULL;
/* Glyph of last character processed so far. Undefined if
'no_chars_yet'.
*/
@@ -248,8 +248,8 @@
*bwid_p += full_pixels;
accumulated_ics -= full_pixels;
}
- lastGlyphP = glyphP;
}
+ lastGlyphP = glyphP;
*bwid_p += glyphP->xadd;
}
}