Skip to content

Commit ed372b7

Browse files
alanclemzwerg
authored andcommitted
Fix cppcheck 1.64 warning.
* src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer dereference in case of error.
1 parent 1a69dc7 commit ed372b7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ChangeLog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2014-03-09 Alan Coopersmith <[email protected]>
2+
3+
Fix cppcheck 1.64 warning.
4+
5+
* src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer
6+
dereference in case of error.
7+
18
2014-03-09 Sean McBride <[email protected]>
29

310
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.

src/autofit/afglobal.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@
332332
af_face_globals_free( globals );
333333
globals = NULL;
334334
}
335-
336-
globals->increase_x_height = AF_PROP_INCREASE_X_HEIGHT_MAX;
335+
else
336+
globals->increase_x_height = AF_PROP_INCREASE_X_HEIGHT_MAX;
337337

338338
Exit:
339339
*aglobals = globals;

0 commit comments

Comments
 (0)