Commit 33de8d67 authored by Uri Blumenthal's avatar Uri Blumenthal

Fixed cppcheck-discovered error #292

parent a818b6e8
......@@ -14,6 +14,7 @@ asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key,
va_start(args, fmt);
wrote = vsnprintf(buf, buf_size, fmt, args);
va_end(args);
if(wrote < (ssize_t)buf_size) {
if(wrote < 0) {
if(buf != scratch) FREEMEM(buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment