Commit d594771c authored by Lev Walkin's avatar Lev Walkin

there can be no identifier

parent a895afba
...@@ -134,13 +134,15 @@ asn1f_parametrize(arg_t *arg, asn1p_expr_t *expr, asn1p_expr_t *ptype) { ...@@ -134,13 +134,15 @@ asn1f_parametrize(arg_t *arg, asn1p_expr_t *expr, asn1p_expr_t *ptype) {
* Cleanup the new expression so there is no ptype-related * Cleanup the new expression so there is no ptype-related
* stuff hanging around. * stuff hanging around.
*/ */
p = strdup(expr->Identifier); if(expr->Identifier) {
if(p) { p = strdup(expr->Identifier);
free(nex->Identifier); if(p) {
nex->Identifier = p; free(nex->Identifier);
} else { nex->Identifier = p;
asn1p_expr_free(nex); } else {
return -1; asn1p_expr_free(nex);
return -1;
}
} }
asn1p_paramlist_free(nex->params); asn1p_paramlist_free(nex->params);
nex->params = NULL; nex->params = NULL;
......
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