summaryrefslogtreecommitdiff
path: root/src/cairo-type1-fallback.c
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@web.de>2006-10-22 20:08:07 +0200
committerChristian Biesinger <cbiesinger@web.de>2006-10-22 20:10:02 +0200
commitbd5d7c1fb2331c487c934c20f6067455e0a4ca3d (patch)
treebbb5674c01de0d1d09fc3f8791c0fd3dd5a8cfb8 /src/cairo-type1-fallback.c
parent2313f69066152034ac977776bee88f0c77b76aca (diff)
Don't return an uninitialized value if _cairo_output_stream_create fails
Diffstat (limited to 'src/cairo-type1-fallback.c')
-rw-r--r--src/cairo-type1-fallback.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c
index f71c3c87f..0229e0da5 100644
--- a/src/cairo-type1-fallback.c
+++ b/src/cairo-type1-fallback.c
@@ -553,8 +553,10 @@ cairo_type1_font_write_private_dict (cairo_type1_font_t *font,
cairo_type1_write_stream_encrypted,
NULL,
font);
- if (encrypted_output == NULL)
+ if (encrypted_output == NULL) {
+ status = CAIRO_STATUS_NO_MEMORY;
goto fail;
+ }
/* Note: the first four spaces at the start of this private dict
* are the four "random" bytes of plaintext required by the