play safe

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@541 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-10-23 11:19:43 +00:00
parent a56a9e89fc
commit 64f1ba231d
1 changed files with 2 additions and 1 deletions

View File

@ -245,8 +245,9 @@ xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
switch(rc.code) {
case RC_OK:
if(!s_arg.decoded_something) {
char ch;
/* 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.
*/