mirror of https://github.com/GNOME/gimp.git
app: fix build warning.
Though not a bug, this change will get rid of the following warning: > app/dialogs/module-dialog.c:291:28: warning: ‘location’ may be used uninitialized in this function [-Wmaybe-uninitialized] > 291 | text[INFO_LOCATION] = gimp_module_is_on_disk (module) ?
This commit is contained in:
parent
6b6928192c
commit
5bf0ece215
|
@ -257,8 +257,8 @@ dialog_select_callback (GtkListBox *listbox,
|
|||
{
|
||||
guint i;
|
||||
GimpModule *module;
|
||||
const gchar *location;
|
||||
const GimpModuleInfo *info;
|
||||
const gchar *location = NULL;
|
||||
const gchar *text[N_INFOS] = { NULL, };
|
||||
gboolean show_error;
|
||||
|
||||
|
@ -288,13 +288,11 @@ dialog_select_callback (GtkListBox *listbox,
|
|||
text[INFO_VERSION] = info->version;
|
||||
text[INFO_DATE] = info->date;
|
||||
text[INFO_COPYRIGHT] = info->copyright;
|
||||
text[INFO_LOCATION] = gimp_module_is_on_disk (module) ?
|
||||
location : _("Only in memory");
|
||||
text[INFO_LOCATION] = location ? location : _("Only in memory");
|
||||
}
|
||||
else
|
||||
{
|
||||
text[INFO_LOCATION] = gimp_module_is_on_disk (module) ?
|
||||
location : _("No longer available");
|
||||
text[INFO_LOCATION] = location ? location : _("No longer available");
|
||||
}
|
||||
|
||||
for (i = 0; i < N_INFOS; i++)
|
||||
|
|
Loading…
Reference in New Issue