diff options
-rw-r--r-- | rsvg-filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsvg-filter.c b/rsvg-filter.c index cfc575c1..4d4d0d3b 100644 --- a/rsvg-filter.c +++ b/rsvg-filter.c @@ -672,7 +672,7 @@ rsvg_filter_get_result (GString * name, RsvgFilterContext * ctx) output.surface = cairo_surface_reference (rsvg_filter_get_bg (ctx)); output.Rused = output.Gused = output.Bused = output.Aused = 1; return output; - } else if (!strcmp (name->str, "") || !strcmp (name->str, "none") || !name) { + } else if (!name || !strcmp (name->str, "") || !strcmp (name->str, "none")) { output = ctx->lastresult; cairo_surface_reference (output.surface); return output; |