diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-07-09 15:05:53 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-07-09 15:08:45 +0200 |
commit | 2da784ce8f911f0eb1ef83fbcf3e2ce2d7529d15 (patch) | |
tree | 09ab0159ea3800e08882faf6663b803ffb644f9a /hiredis.c | |
parent | 27c96dde77e9a36602cc3c5040375b081652a4bf (diff) |
Abort on invalid format
There is no way we can guess the width of the argument when we cannot
infer its type from the format specifier.
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -826,10 +826,8 @@ int redisvFormatCommand(char **target, const char *format, va_list ap) { } fmt_invalid: - /* Consume and discard vararg */ - va_arg(ap,void); va_end(_cpy); - break; + goto err; fmt_valid: _l = (_p+1)-c; |