[gthumb] catalogs: when there is no error the catalog must be set
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] catalogs: when there is no error the catalog must be set
- Date: Mon, 27 Jan 2020 17:14:20 +0000 (UTC)
commit 64dea9234ff354fda097edb509e83692e20967fb
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jan 27 10:16:40 2020 +0100
catalogs: when there is no error the catalog must be set
extensions/catalogs/dlg-catalog-properties.c | 1 +
extensions/catalogs/gth-file-source-catalogs.c | 2 ++
2 files changed, 3 insertions(+)
---
diff --git a/extensions/catalogs/dlg-catalog-properties.c b/extensions/catalogs/dlg-catalog-properties.c
index 88c1d4d1..0644b337 100644
--- a/extensions/catalogs/dlg-catalog-properties.c
+++ b/extensions/catalogs/dlg-catalog-properties.c
@@ -156,6 +156,7 @@ catalog_ready_cb (GObject *object,
return;
}
+ g_assert (object != NULL);
data->catalog = GTH_CATALOG (g_object_ref (object));
if (gth_catalog_get_name (data->catalog) != NULL) {
diff --git a/extensions/catalogs/gth-file-source-catalogs.c b/extensions/catalogs/gth-file-source-catalogs.c
index 86d38f6a..eb9162e8 100644
--- a/extensions/catalogs/gth-file-source-catalogs.c
+++ b/extensions/catalogs/gth-file-source-catalogs.c
@@ -827,6 +827,7 @@ catalog_ready_cb (GObject *catalog,
return;
}
+ g_assert (catalog != NULL);
cod->catalog = (GthCatalog *) catalog;
if (cod->destination_position >= 0)
@@ -1242,6 +1243,7 @@ reorder_catalog_ready_cb (GObject *object,
return;
}
+ g_assert (object != NULL);
catalog = (GthCatalog *) object;
reorder_data->new_order = reorder_catalog_list (catalog,
reorder_data->visible_files,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]