[cairo-commit] src/cairo-ps-surface.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Fri Dec 8 07:44:29 UTC 2017


 src/cairo-ps-surface.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f9cf6f9200f3c84f8601a78ea73330eeed0c3e12
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Fri Dec 8 18:13:20 2017 +1030

    ps: fix compile warning
    
    https://lists.cairographics.org/archives/cairo/2017-December/028481.html

diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 80b8b02a..f01b7e70 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -3570,7 +3570,7 @@ _cairo_ps_surface_emit_form (cairo_ps_surface_t          *surface,
 			     cairo_emit_surface_params_t *params,
 			     cairo_bool_t                 test)
 {
-    cairo_ps_form_t *ps_form;
+    cairo_ps_form_t *ps_form = NULL;
     cairo_status_t status;
 
     status = _cairo_ps_surface_use_form (surface,
@@ -3619,7 +3619,7 @@ _cairo_ps_surface_emit_surface (cairo_ps_surface_t          *surface,
 				cairo_emit_surface_params_t *params)
 {
     cairo_int_status_t status;
-    cairo_output_stream_t *old_stream;
+    cairo_output_stream_t *old_stream = NULL;
     cairo_bool_t use_form;
 
     /* Try emitting as a form. Returns unsupported if the surface is


More information about the cairo-commit mailing list