summaryrefslogtreecommitdiff
path: root/src/sfnt/ttbdf.c
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2006-02-25 12:49:40 +0000
committerDavid Turner <david@freetype.org>2006-02-25 12:49:40 +0000
commit6c71c6b968139e91723cb06c91384fc8b5994165 (patch)
treecd19b3fca3e27d949b4fde7a0fc47f05c405c8c0 /src/sfnt/ttbdf.c
parentd7e6b767396932f0eb0bd9142deec7e0109ecaa5 (diff)
downloadfreetype2-6c71c6b968139e91723cb06c91384fc8b5994165.tar.gz
* include/freetype/config/ftoption.h, src/autofit/afcjk.c,
src/base/ftobjs.c, src/base/ftutil.c, src/cff/cffobjs.c, src/psaux/afmparse.c, src/sfnt/ttbdf.c, src/tools/apinames.c, src/truetype/ttdriver.c: solved compiler warnings as well as C++ compilation problems
Diffstat (limited to 'src/sfnt/ttbdf.c')
-rw-r--r--src/sfnt/ttbdf.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sfnt/ttbdf.c b/src/sfnt/ttbdf.c
index 52bbce09e..9372384d8 100644
--- a/src/sfnt/ttbdf.c
+++ b/src/sfnt/ttbdf.c
@@ -92,11 +92,7 @@
( strings - 8 ) / 4 < num_strikes ||
strings + 1 > length )
{
- BadTable:
- FT_FRAME_RELEASE( bdf->table );
- FT_ZERO( bdf );
- error = FT_Err_Invalid_Table;
- goto Exit;
+ goto BadTable;
}
bdf->num_strikes = num_strikes;
@@ -132,6 +128,12 @@
Exit:
return error;
+
+ BadTable:
+ FT_FRAME_RELEASE( bdf->table );
+ FT_ZERO( bdf );
+ error = FT_Err_Invalid_Table;
+ goto Exit;
}