Use C89 compatible local declaration.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2677 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/ume.c b/coregrind/ume.c
index cdfb59a..1b0183f 100644
--- a/coregrind/ume.c
+++ b/coregrind/ume.c
@@ -667,6 +667,7 @@
static int do_exec_inner(const char *exe, struct exeinfo *info)
{
int fd;
+ int err;
char buf[VKI_BYTES_PER_PAGE];
int bufsz;
int i;
@@ -688,7 +689,7 @@
return errno;
}
- int err = check_perms(fd);
+ err = check_perms(fd);
if (err != 0) {
close(fd);
return err;