From e157c63ddc88b3f822a96cdf018f9533c9f8807c Mon Sep 17 00:00:00 2001 From: ekrisza <ekrisza@HU00060815.ericsson.se> Date: Mon, 25 Jun 2018 15:49:25 +0200 Subject: [PATCH] we already know what the error message will be. Signed-off-by: ekrisza <ekrisza@HU00060815.ericsson.se> --- core/Addfunc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Addfunc.cc b/core/Addfunc.cc index d5636bbfb..46162c471 100644 --- a/core/Addfunc.cc +++ b/core/Addfunc.cc @@ -604,7 +604,8 @@ int char2int(char value) int char2int(const char *value) { - if (value == NULL) value = ""; + if (value == NULL) TTCN_error("The length of the argument in function " + "char2int() must be exactly 1 instead of 0."); int value_length = strlen(value); if (value_length != 1) TTCN_error("The length of the argument in function " "char2int() must be exactly 1 instead of %d.", value_length); -- GitLab