summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cairo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo.c b/src/cairo.c
index 85cb4cda5..afc076dbf 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -110,7 +110,7 @@ static void
_cairo_set_error (cairo_t *cr, cairo_status_t status)
{
if (status == CAIRO_STATUS_SUCCESS)
- return status;
+ return;
/* Don't overwrite an existing error. This preserves the first
* error, which is the most significant. */