From eeb347c5c2ee7ffe56ab6f2c4074382997b0c88f Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 1 Oct 2017 21:00:52 -0400 Subject: [PATCH] ... --- MagickCore/widget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MagickCore/widget.c b/MagickCore/widget.c index 93e5a2189..27180b829 100644 --- a/MagickCore/widget.c +++ b/MagickCore/widget.c @@ -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; -- 2.40.0