aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:52:44 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:52:44 +0100
commit2661c26164b52be7c029eb735f6932d17054fc62 (patch)
tree194844e5b60e62a96609d2c95e13847225c2eb04
parent6fc69c5d349b2954fdd0d241d1f3d0836676e557 (diff)
downloadpack-2661c26164b52be7c029eb735f6932d17054fc62.tar.gz
pack-2661c26164b52be7c029eb735f6932d17054fc62.tar.xz
pack-2661c26164b52be7c029eb735f6932d17054fc62.zip
unpack: Fix default case mistake
-rw-r--r--unpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack.c b/unpack.c
index ae08f1b..ebd48f8 100644
--- a/unpack.c
+++ b/unpack.c
@@ -128,7 +128,7 @@ enum pack_status unpack(const void *buf_, size_t size, const char *fmt, ...)
case 'f': arg.f = va_arg(ap, float *); break;
case 'd': arg.d = va_arg(ap, double *); break;
case 'x': break;
- return PACK_FMTINVAL;
+ default: return PACK_FMTINVAL;
}
s = getsize(fmt[i]);