From 0913f24d8db4280c69e2e5bef3daa762beb3b9f8 Mon Sep 17 00:00:00 2001
From: Lev Walkin <vlm@lionet.info>
Date: Mon, 6 Mar 2006 00:30:30 +0000
Subject: [PATCH] skip filenameless includes

---
 libasn1compiler/asn1c_out.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libasn1compiler/asn1c_out.h b/libasn1compiler/asn1c_out.h
index 838b1b36..63732896 100644
--- a/libasn1compiler/asn1c_out.h
+++ b/libasn1compiler/asn1c_out.h
@@ -84,12 +84,14 @@ int asn1c_compiled_output(arg_t *arg, const char *fmt, ...);
 /* Generate #include line */
 #define	GEN_INCLUDE(filename)	do {				\
 	int saved_target = arg->target->target;			\
+	if(!filename) break;					\
 	REDIR(OT_INCLUDES);					\
 	OUT_NOINDENT("#include <%s.h>\n", filename);		\
 	REDIR(saved_target);					\
 } while(0)
 #define	GEN_POSTINCLUDE(filename)	do {			\
 	int saved_target = arg->target->target;			\
+	if(!filename) break;					\
 	REDIR(OT_POST_INCLUDE);					\
 	OUT_NOINDENT("#include <%s.h>\n", filename);		\
 	REDIR(saved_target);					\
-- 
GitLab