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

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Nov 5 11:48:50 PST 2007


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

New commits:
commit 55b530ffef2bce96d57919563c6c9b58f02f8fb8
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Nov 5 14:47:27 2007 -0500

    [PS] Fix compiler warnings

diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 013f025..71fa6bd 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -1066,7 +1066,7 @@ void
 cairo_ps_surface_restrict_to_level (cairo_surface_t  *surface,
                                     cairo_ps_level_t  level)
 {
-    cairo_ps_surface_t *ps_surface;
+    cairo_ps_surface_t *ps_surface = NULL;
     cairo_status_t status;
 
     status = _extract_ps_surface (surface, &ps_surface);
@@ -1141,7 +1141,7 @@ void
 cairo_ps_surface_set_eps (cairo_surface_t	*surface,
 			  cairo_bool_t           eps)
 {
-    cairo_ps_surface_t *ps_surface;
+    cairo_ps_surface_t *ps_surface = NULL;
     cairo_status_t status;
 
     status = _extract_ps_surface (surface, &ps_surface);
@@ -1166,7 +1166,7 @@ cairo_ps_surface_set_eps (cairo_surface_t	*surface,
 cairo_public cairo_bool_t
 cairo_ps_surface_get_eps (cairo_surface_t	*surface)
 {
-    cairo_ps_surface_t *ps_surface;
+    cairo_ps_surface_t *ps_surface = NULL;
     cairo_status_t status;
 
     status = _extract_ps_surface (surface, &ps_surface);
@@ -1200,7 +1200,7 @@ cairo_ps_surface_set_size (cairo_surface_t	*surface,
 			   double		 width_in_points,
 			   double		 height_in_points)
 {
-    cairo_ps_surface_t *ps_surface;
+    cairo_ps_surface_t *ps_surface = NULL;
     cairo_status_t status;
 
     status = _extract_ps_surface (surface, &ps_surface);
@@ -1310,7 +1310,7 @@ void
 cairo_ps_surface_dsc_comment (cairo_surface_t	*surface,
 			      const char	*comment)
 {
-    cairo_ps_surface_t *ps_surface;
+    cairo_ps_surface_t *ps_surface = NULL;
     cairo_status_t status;
     char *comment_copy;
 
@@ -1365,7 +1365,7 @@ cairo_ps_surface_dsc_comment (cairo_surface_t	*surface,
 void
 cairo_ps_surface_dsc_begin_setup (cairo_surface_t *surface)
 {
-    cairo_ps_surface_t *ps_surface;
+    cairo_ps_surface_t *ps_surface = NULL;
     cairo_status_t status;
 
     status = _extract_ps_surface (surface, &ps_surface);
@@ -1400,7 +1400,7 @@ cairo_ps_surface_dsc_begin_setup (cairo_surface_t *surface)
 void
 cairo_ps_surface_dsc_begin_page_setup (cairo_surface_t *surface)
 {
-    cairo_ps_surface_t *ps_surface;
+    cairo_ps_surface_t *ps_surface = NULL;
     cairo_status_t status;
 
     status = _extract_ps_surface (surface, &ps_surface);


More information about the cairo-commit mailing list