Fix %s-NULL-printfs in image option previewers, #441798.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16134 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-05-28 20:44:46 +00:00
parent e83103cb96
commit d8bfaa0572

View File

@ -233,10 +233,10 @@ gnc_image_option_update_preview_cb (GtkFileChooser *chooser,
ENTER("chooser %p, option %p", chooser, option);
filename = gtk_file_chooser_get_preview_filename(chooser);
DEBUG("chooser preview name is %s.", filename);
DEBUG("chooser preview name is %s.", filename ? filename : "(null)");
if (filename == NULL) {
filename = g_strdup(g_object_get_data(G_OBJECT(chooser), LAST_SELECTION));
DEBUG("using last selection of %s", filename);
DEBUG("using last selection of %s", filename ? filename : "(null)");
if (filename == NULL) {
LEAVE("no usable name");
return;