X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e480573a5ff59ce2ae78793427e61b85dce7eef1..04af0b0b4df91a7a1f579edf17f49a81d10db592:/stglibs/smux.lib/constr_CHOICE.c?ds=inline diff --git a/stglibs/smux.lib/constr_CHOICE.c b/stglibs/smux.lib/constr_CHOICE.c index b8d6fa9a..a20a0505 100644 --- a/stglibs/smux.lib/constr_CHOICE.c +++ b/stglibs/smux.lib/constr_CHOICE.c @@ -1020,7 +1020,7 @@ CHOICE_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, void CHOICE_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) { - asn_CHOICE_specifics_t *specs = (asn_CHOICE_specifics_t *)td->specifics; + asn_CHOICE_specifics_t *specs = td ? (asn_CHOICE_specifics_t *)td->specifics : NULL; int present; if(!td || !ptr)