Commit 36b8b827 authored by Lev Walkin's avatar Lev Walkin

play safe

parent 4cb49cb1
...@@ -245,8 +245,9 @@ xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx, ...@@ -245,8 +245,9 @@ xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
switch(rc.code) { switch(rc.code) {
case RC_OK: case RC_OK:
if(!s_arg.decoded_something) { if(!s_arg.decoded_something) {
char ch;
/* Opportunity has come and gone. Where's the result? */ /* Opportunity has come and gone. Where's the result? */
if(prim_body_decode(s_arg.struct_key, "", 0) != 0) { if(prim_body_decode(s_arg.struct_key, &ch, 0) != 0) {
/* /*
* This decoder does not like empty stuff. * This decoder does not like empty stuff.
*/ */
......
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