X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpostscript.c;h=196e7120cec4f0118cda4331f8bc74b90f11bdb7;hb=37597beca4a11edba50b847932fdfeca3a648fa2;hp=b911f8ccdd6ec08588b6a6996aac77cd8dbea060;hpb=92820c3a68c8883f488874abceffd0f50ffcbcbc;p=pspp-builds.git diff --git a/src/postscript.c b/src/postscript.c index b911f8cc..196e7120 100644 --- a/src/postscript.c +++ b/src/postscript.c @@ -2575,7 +2575,7 @@ text (struct outp_driver *this, struct outp_text *t, int draw) char_name = local_char_name; if (ext->current->font->ligatures && *cp == 'f') { - int lig; + int lig = 0; char_name = NULL; if (cp < end - 1) @@ -2604,7 +2604,7 @@ text (struct outp_driver *this, struct outp_text *t, int draw) } if ((lig & ext->current->font->ligatures) == 0) { - local_char_name[0] = *cp++; /* 'f' */ + local_char_name[0] = *cp; /* 'f' */ char_name = local_char_name; } }