[librsvg] rsvg-filter: Remove a bogus NULL check



commit 350b685eadd9a17813905e3a4ae05b9d89a44087
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Oct 31 12:24:11 2013 -0400

    rsvg-filter: Remove a bogus NULL check
    
    We've already dereferenced name at this point.

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]