fontforge/bugzilla-242363-uninitialized-variable.patch

12 lines
429 B
Diff

diff -ru fontforge-20061220/Unicode/ustring.c fontforge-20061220.new/Unicode/ustring.c
--- fontforge-20061220/Unicode/ustring.c 2006-03-13 00:16:56.000000000 +0100
+++ fontforge-20061220.new/Unicode/ustring.c 2007-02-06 17:00:57.000000000 +0100
@@ -683,6 +683,7 @@
len = strlen(utf8buf);
lbuf = galloc(len+1);
+ pt = lbuf;
for ( upt=utf8buf; (ch=utf8_ildb(&upt))!='\0'; )
if ( ch>=0xff )
*pt++ = '?';