aboutsummaryrefslogtreecommitdiffstats
path: root/unpack.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack.c')
-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]);