summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-08-10 00:33:01 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-08-10 00:33:01 +0200
commitc28ce5f78816ca312b4531b1ac747bd7fd1427bb (patch)
tree04066e406119ad6384b56f7373aa5aaf55631ad4
parentd0578fdfee2422c97ce4eb01a73c7251977f4260 (diff)
Yet another fix for C89 stupidneess.
-rw-r--r--mpq-bios.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpq-bios.c b/mpq-bios.c
index 79b6512..aa0b6c8 100644
--- a/mpq-bios.c
+++ b/mpq-bios.c
@@ -535,7 +535,6 @@ int mpqlib_find_hash_entry_by_name(struct mpq_archive_t * mpq_a, const char * na
}
uint64_t mpqlib_ioctl(struct mpq_archive_t * mpq_a, enum mpqlib_ioctl_t command, ...) {
- __mpqlib_errno = MPQLIB_ERROR_NO_ERROR;
uint64_t r = 0;
uint32_t u32;
uint64_t u64;
@@ -544,6 +543,8 @@ uint64_t mpqlib_ioctl(struct mpq_archive_t * mpq_a, enum mpqlib_ioctl_t command,
va_list ap;
va_start(ap, command);
+ __mpqlib_errno = MPQLIB_ERROR_NO_ERROR;
+
switch(command) {
case MPQLIB_IOCTL_NO_ACTION:
break;