diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-11-20 17:26:42 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-11-20 17:26:42 -0500 |
commit | 023512f09b86219d443fe3631c93b17f2199bec5 (patch) | |
tree | 4fa94e28d83e18899446f38141c6cef6e99b76fb | |
parent | b0d396aa88b3cdf8cea896bfeeba197656e1cdb1 (diff) |
Bug 25199 - Variable "error" can be used without initialization.
-rw-r--r-- | src/harfbuzz-shaper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/harfbuzz-shaper.cpp b/src/harfbuzz-shaper.cpp index f3ec8e1..1056f45 100644 --- a/src/harfbuzz-shaper.cpp +++ b/src/harfbuzz-shaper.cpp @@ -980,6 +980,7 @@ HB_Face HB_NewFace(void *font, HB_GetFontTableFunc tableFunc) HB_Stream gdefStream; gdefStream = getTableStream(font, tableFunc, TTAG_GDEF); + error = HB_Err_Not_Covered; if (!gdefStream || (error = HB_Load_GDEF_Table(gdefStream, &face->gdef))) { //DEBUG("error loading gdef table: %d", error); face->gdef = 0; @@ -987,6 +988,7 @@ HB_Face HB_NewFace(void *font, HB_GetFontTableFunc tableFunc) //DEBUG() << "trying to load gsub table"; stream = getTableStream(font, tableFunc, TTAG_GSUB); + error = HB_Err_Not_Covered; if (!stream || (error = HB_Load_GSUB_Table(stream, &face->gsub, face->gdef, gdefStream))) { face->gsub = 0; if (error != HB_Err_Not_Covered) { @@ -998,6 +1000,7 @@ HB_Face HB_NewFace(void *font, HB_GetFontTableFunc tableFunc) _hb_close_stream(stream); stream = getTableStream(font, tableFunc, TTAG_GPOS); + error = HB_Err_Not_Covered; if (!stream || (error = HB_Load_GPOS_Table(stream, &face->gpos, face->gdef, gdefStream))) { face->gpos = 0; DEBUG("error loading gpos table: %d", error); |