From 36b8b8270318e3d814c8092f75fb900bf8721850 Mon Sep 17 00:00:00 2001
From: Lev Walkin <vlm@lionet.info>
Date: Sat, 23 Oct 2004 11:19:43 +0000
Subject: [PATCH] play safe

---
 skeletons/asn_codecs_prim.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/skeletons/asn_codecs_prim.c b/skeletons/asn_codecs_prim.c
index 04a064dd..f2d045aa 100644
--- a/skeletons/asn_codecs_prim.c
+++ b/skeletons/asn_codecs_prim.c
@@ -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.
 				 */
-- 
GitLab