From 1b34818d1e8e3d80c05c03c216143d713e57f058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 30 Apr 2008 08:22:57 +0000 Subject: [PATCH] Move _hx509_sel_yyerror here. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23150 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/sel.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/hx509/sel.c b/lib/hx509/sel.c index 80065bab5..0e68f8ba5 100644 --- a/lib/hx509/sel.c +++ b/lib/hx509/sel.c @@ -220,3 +220,13 @@ _hx509_expr_parse(const char *buf) return _hx509_expr_input.expr; } + +void +_hx509_sel_yyerror (char *s) +{ + if (_hx509_expr_input.error) + free(_hx509_expr_input.error); + + _hx509_expr_input.error = strdup(s); +} +