Commit e9af32831 for imagemagick.org

commit e9af32831765b51b72667923f43a4c59171a6429
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Thu Sep 24 14:16:23 2026 -0400

    adapt to changes in the autotrace delegate library

diff --git a/coders/svg.c b/coders/svg.c
index 6aea2235a..5853cd8f1 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -3610,6 +3610,7 @@ static MagickBooleanType TraceSVGImage(Image *image,ExceptionInfo *exception)
     at_bitmap
       *trace;

+
     at_fitting_opts_type
       *fitting_options;

@@ -3619,6 +3620,9 @@ static MagickBooleanType TraceSVGImage(Image *image,ExceptionInfo *exception)
     at_splines_type
       *splines;

+    at_spline_writer
+      *handler;
+
     const Quantum
       *p;

@@ -3658,9 +3662,10 @@ static MagickBooleanType TraceSVGImage(Image *image,ExceptionInfo *exception)
     }
     splines=at_splines_new_full(trace,fitting_options,NULL,NULL,NULL,NULL,NULL,
       NULL);
-    at_splines_write(at_output_get_handler_by_suffix((char *) "svg"),
-      GetBlobFileHandle(image),image->filename,output_options,splines,NULL,
-      NULL);
+    handler=at_output_get_handler_by_suffix("svg");
+    if (handler != NULL)
+      at_splines_write(handler,GetBlobFileHandle(image),image->filename,output_options,splines,
+        NULL,NULL);
     /*
       Free resources.
     */