]> Pileus Git - ~andy/gtk/commitdiff
Put variable definitions at start of block
authorShixin Zeng <zeng.shixin@gmail.com>
Thu, 20 Aug 2009 20:51:38 +0000 (23:51 +0300)
committerTor Lillqvist <tml@iki.fi>
Thu, 20 Aug 2009 20:51:38 +0000 (23:51 +0300)
gdk-pixbuf/gdk-pixbuf-io.c
modules/engines/ms-windows/msw_style.c

index 664e519da2dda4690349730b347ec98f96dffd8a..646b0f1eaa89305f9f11198a36adf7583a7d4a2a 100644 (file)
@@ -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);
     }
index bc253e103a0334b8bc914a7ba370103f7351e433..a21494b29874b281d46153ad5567c8adefa3a792 100755 (executable)
@@ -550,8 +550,8 @@ get_windows_version ()
 
   if (!have_version)
     {
-      have_version = TRUE;
       OSVERSIONINFOEX osvi;
+      have_version = TRUE;
 
       ZeroMemory (&osvi, sizeof (OSVERSIONINFOEX));
       osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEX);