]> granicus.if.org Git - imagemagick/commitdiff
Corrected return statement.
authorDirk Lemstra <dirk@lemstra.org>
Thu, 4 Oct 2018 20:40:20 +0000 (22:40 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Thu, 4 Oct 2018 20:40:20 +0000 (22:40 +0200)
MagickCore/magick.c

index 86516f707499e89a6ede60db90565c9807d2e5e3..532e95b7d268724275ae37315d7f8fdcd557eaa1 100644 (file)
@@ -636,7 +636,7 @@ MagickExport const MagickInfo *GetMagickInfo(const char *name,
       UnlockSemaphoreInfo(magick_semaphore);
     }
   if ((name == (const char *) NULL) || (LocaleCompare(name,"*") == 0))
-    magick_info=(const MagickInfo *) GetRootValueFromSplayTree(magick_list);
+    return((const MagickInfo *) GetRootValueFromSplayTree(magick_list));
   if (magick_info == (const MagickInfo *) NULL)
     magick_info=(const MagickInfo *) GetValueFromSplayTree(magick_list,name);
   return(magick_info);