summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/pixmap_browser.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pixmap_browser.cxx b/test/pixmap_browser.cxx
index 112fdcd40..af82c2efa 100644
--- a/test/pixmap_browser.cxx
+++ b/test/pixmap_browser.cxx
@@ -88,7 +88,8 @@ void file_cb(const char *n) {
void button_cb(Fl_Widget *,void *) {
fl_file_chooser_callback(file_cb);
- puts(fl_file_chooser("Image file?","*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm}", name));
+ const char *fname = fl_file_chooser("Image file?","*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm}", name);
+ puts(fname ? fname : "(null)"); fflush(stdout);
fl_file_chooser_callback(0);
}