File libgnomeprint-pdf-invalid-path-176712.patch of Package libgnomeprint

? libgnomeprint-pdf-invalid-path-176712.patch
Index: libgnomeprint/gnome-print-job.c
===================================================================
RCS file: /cvs/gnome/libgnomeprint/libgnomeprint/gnome-print-job.c,v
retrieving revision 1.78
diff -u -p -u -r1.78 gnome-print-job.c
--- libgnomeprint/gnome-print-job.c	22 Sep 2005 18:43:18 -0000	1.78
+++ libgnomeprint/gnome-print-job.c	18 May 2006 19:21:27 -0000
@@ -609,6 +609,11 @@ gnome_print_job_print (GnomePrintJob *jo
 
 	/* Create the "real" context and set it up. */
 	ctx = gnome_print_context_new (job->config);
+
+	/* Oh honestly */
+	if (ctx == NULL)
+		return GNOME_PRINT_ERROR_UNKNOWN;
+
 	gnome_print_job_setup_context (job, ctx);
 	g_object_get (G_OBJECT (ctx), "filter", &filter, NULL);
 
openSUSE Build Service is sponsored by