summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorShixin Zeng <zeng.shixin@gmail.com>2009-08-20 23:51:38 +0300
committerTor Lillqvist <tml@iki.fi>2009-08-20 23:51:38 +0300
commite10db38f0d82f997850cc890d79140751c6962b3 (patch)
tree0d098e253980bfded73c6effd73ac61c3d9df394 /gdk-pixbuf
parent428d7bd27bccb4f21d210cefc2024cfb526d398c (diff)
downloadgdk-pixbuf-e10db38f0d82f997850cc890d79140751c6962b3.tar.gz
Put variable definitions at start of block
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 664e519da..646b0f1ea 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -277,6 +277,7 @@ correct_prefix (gchar **path)
if (strncmp (*path, GTK_PREFIX "/", strlen (GTK_PREFIX "/")) == 0 ||
strncmp (*path, GTK_PREFIX "\\", strlen (GTK_PREFIX "\\")) == 0)
{
+ gchar *tem = NULL;
if (strlen(*path) > 5 && strncmp (*path - 5, ".libs", 5) == 0)
{
/* We are being run from inside the build tree, and shouldn't mess about. */
@@ -290,7 +291,7 @@ correct_prefix (gchar **path)
* builder's machine. Replace the build-time prefix with the
* installation prefix on this machine.
*/
- gchar *tem = *path;
+ tem = *path;
*path = g_strconcat (get_toplevel (), tem + strlen (GTK_PREFIX), NULL);
g_free (tem);
}