diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-08-10 00:33:01 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-08-10 00:33:01 +0200 |
commit | c28ce5f78816ca312b4531b1ac747bd7fd1427bb (patch) | |
tree | 04066e406119ad6384b56f7373aa5aaf55631ad4 | |
parent | d0578fdfee2422c97ce4eb01a73c7251977f4260 (diff) |
Yet another fix for C89 stupidneess.
-rw-r--r-- | mpq-bios.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |