mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
e83103cb96
commit
d8bfaa0572
@ -233,10 +233,10 @@ gnc_image_option_update_preview_cb (GtkFileChooser *chooser,
|
|||||||
|
|
||||||
ENTER("chooser %p, option %p", chooser, option);
|
ENTER("chooser %p, option %p", chooser, option);
|
||||||
filename = gtk_file_chooser_get_preview_filename(chooser);
|
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) {
|
if (filename == NULL) {
|
||||||
filename = g_strdup(g_object_get_data(G_OBJECT(chooser), LAST_SELECTION));
|
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) {
|
if (filename == NULL) {
|
||||||
LEAVE("no usable name");
|
LEAVE("no usable name");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user