summaryrefslogtreecommitdiff
path: root/src/asn1Coding.c
diff options
context:
space:
mode:
authorsangsu <sangsu.choi@samsung.com>2016-06-08 10:20:15 +0900
committersangsu <sangsu.choi@samsung.com>2016-06-08 10:20:49 +0900
commite5c912938e2958fbeb7ee01183f0bc4e33143ead (patch)
tree18100dcff05d11b0909fb22b86d5837f2bfc4e9d /src/asn1Coding.c
parent74767631f4593cf64808cb4f510f765e7319ae47 (diff)
parenta39386a3afe2d7e0cc717a49f970f53d974fda53 (diff)
downloadlibtasn1-accepted/tizen_common.tar.gz
libtasn1-accepted/tizen_common.tar.bz2
libtasn1-accepted/tizen_common.zip
Change-Id: I6a83621b105d4c428d1df8e52499b53185577419 Signed-off-by: sangsu <sangsu.choi@samsung.com>
Diffstat (limited to 'src/asn1Coding.c')
-rw-r--r--src/asn1Coding.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/asn1Coding.c b/src/asn1Coding.c
index 650e817..d4df593 100644
--- a/src/asn1Coding.c
+++ b/src/asn1Coding.c
@@ -256,7 +256,12 @@ main (int argc, char *argv[])
asn1_result = asn1_create_element (definitions, value, &structure);
}
else
- asn1_result = asn1_write_value (structure, varName, value, 0);
+ {
+ if (strcmp(value, "(NULL)") == 0)
+ asn1_result = asn1_write_value (structure, varName, NULL, 0);
+ else
+ asn1_result = asn1_write_value (structure, varName, value, 0);
+ }
if (asn1_result != ASN1_SUCCESS)
{