diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-08-07 15:42:58 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-08-08 03:01:15 -0400 |
commit | b67d34e960fa07cfafb13e3a5b5b4a63cfb024d3 (patch) | |
tree | d389ab64203525b7d65bb304e84abbb182e298e0 | |
parent | 7e57892983bbc639fe4a402a427b255e4d4ab746 (diff) |
[gstate] Check for NULL font_face in _cairo_gstate_set_font_face
-rw-r--r-- | src/cairo-gstate.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c index b23d0b69e..3160d0729 100644 --- a/src/cairo-gstate.c +++ b/src/cairo-gstate.c @@ -1466,7 +1466,10 @@ cairo_status_t _cairo_gstate_set_font_face (cairo_gstate_t *gstate, cairo_font_face_t *font_face) { - if (font_face && font_face->status) + if (font_face == NULL) + return CAIRO_STATUS_NULL_POINTER; + + if (font_face->status) return font_face->status; if (font_face != gstate->font_face) { |