[gimp] app: GimpTagCache: move variable to local scope
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: GimpTagCache: move variable to local scope
- Date: Thu, 1 Dec 2011 19:34:38 +0000 (UTC)
commit 70376b752833e4c7853af412e9cc2f92831a7ec1
Author: Michael Natterer <mitch gimp org>
Date: Thu Dec 1 20:34:18 2011 +0100
app: GimpTagCache: move variable to local scope
app/core/gimptagcache.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimptagcache.c b/app/core/gimptagcache.c
index 87759ee..b6019c6 100644
--- a/app/core/gimptagcache.c
+++ b/app/core/gimptagcache.c
@@ -148,10 +148,11 @@ static void
gimp_tag_cache_finalize (GObject *object)
{
GimpTagCache *cache = GIMP_TAG_CACHE (object);
- gint i;
if (cache->priv->records)
{
+ gint i;
+
for (i = 0; i < cache->priv->records->len; i++)
{
GimpTagCacheRecord *rec = &g_array_index (cache->priv->records,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]