diff options
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 3 | ||||
-rwxr-xr-x | modules/engines/ms-windows/msw_style.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 664e519da2..646b0f1eaa 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); } diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c index bc253e103a..a21494b298 100755 --- a/modules/engines/ms-windows/msw_style.c +++ b/modules/engines/ms-windows/msw_style.c @@ -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); |