Commit d346ffd8 authored by Vasil Velichkov's avatar Vasil Velichkov Committed by Lev Walkin

Initialize _asn_ctx in the tests

parent 72b10447
...@@ -190,8 +190,8 @@ check_fractions() { ...@@ -190,8 +190,8 @@ check_fractions() {
static void static void
compare(int lineno, int cmp_control, const char *astr, const char *bstr) { compare(int lineno, int cmp_control, const char *astr, const char *bstr) {
GeneralizedTime_t a = {(uint8_t *)strdup(astr), strlen(astr)}; GeneralizedTime_t a = {(uint8_t *)strdup(astr), strlen(astr), {0, 0, 0, 0, 0}};
GeneralizedTime_t b = {(uint8_t *)strdup(bstr), strlen(bstr)}; GeneralizedTime_t b = {(uint8_t *)strdup(bstr), strlen(bstr), {0, 0, 0, 0, 0}};
int cmp_result = asn_DEF_GeneralizedTime.op->compare_struct( int cmp_result = asn_DEF_GeneralizedTime.op->compare_struct(
&asn_DEF_GeneralizedTime, &a, &b); &asn_DEF_GeneralizedTime, &a, &b);
if(cmp_result != cmp_control) { if(cmp_result != cmp_control) {
......
...@@ -35,8 +35,8 @@ check(char *time_str, time_t sample, int as_gmt) { ...@@ -35,8 +35,8 @@ check(char *time_str, time_t sample, int as_gmt) {
static void static void
compare(int lineno, int cmp_control, const char *astr, const char *bstr) { compare(int lineno, int cmp_control, const char *astr, const char *bstr) {
UTCTime_t a = {(uint8_t *)strdup(astr), strlen(astr)}; UTCTime_t a = {(uint8_t *)strdup(astr), strlen(astr), {0, 0, 0, 0, 0}};
UTCTime_t b = {(uint8_t *)strdup(bstr), strlen(bstr)}; UTCTime_t b = {(uint8_t *)strdup(bstr), strlen(bstr), {0, 0, 0, 0, 0}};
int cmp_result = int cmp_result =
asn_DEF_UTCTime.op->compare_struct(&asn_DEF_UTCTime, &a, &b); asn_DEF_UTCTime.op->compare_struct(&asn_DEF_UTCTime, &a, &b);
if(cmp_result != cmp_control) { if(cmp_result != cmp_control) {
......
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