]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 2 Oct 2017 01:00:52 +0000 (21:00 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 2 Oct 2017 01:01:23 +0000 (21:01 -0400)
MagickCore/widget.c

index 93e5a21894fd7ed1860b85db78ab8350fb4459ef..27180b8294b7c3d6b997ba4738d00a21ba21beb9 100644 (file)
@@ -4963,6 +4963,8 @@ MagickPrivate void XFileBrowserWidget(Display *display,XWindows *windows,
                 exception=AcquireExceptionInfo();
                 formats=GetMagickList("*",&number_formats,exception);
                 exception=DestroyExceptionInfo(exception);
+                if (formats == (char **) NULL)
+                  break;
                 (void) XCheckDefineCursor(display,windows->widget.id,
                   windows->widget.busy_cursor);
                 windows->popup.x=windows->widget.x+60;