diff options
Diffstat (limited to 'Utilities/cmxmlrpc/xmlrpc_utf8.c')
-rw-r--r-- | Utilities/cmxmlrpc/xmlrpc_utf8.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Utilities/cmxmlrpc/xmlrpc_utf8.c b/Utilities/cmxmlrpc/xmlrpc_utf8.c index 4e31362..353c72e 100644 --- a/Utilities/cmxmlrpc/xmlrpc_utf8.c +++ b/Utilities/cmxmlrpc/xmlrpc_utf8.c @@ -277,9 +277,6 @@ xmlrpc_mem_block *xmlrpc_utf8_to_wcs (xmlrpc_env *env, xmlrpc_mem_block *output; size_t wcs_length; - /* Error-handling preconditions. */ - output = NULL; - /* Allocate a memory block large enough to hold any possible output. ** We assume that each byte of the input may decode to a whcar_t. */ output = XMLRPC_TYPED_MEM_BLOCK_NEW(wchar_t, env, utf8_len); @@ -326,9 +323,6 @@ xmlrpc_mem_block *xmlrpc_wcs_to_utf8 (xmlrpc_env *env, XMLRPC_ASSERT_ENV_OK(env); XMLRPC_ASSERT_PTR_OK(wcs_data); - /* Error-handling preconditions. */ - output = NULL; - /* Allocate a memory block large enough to hold any possible output. ** We assume that every wchar might encode to the maximum length. */ estimate = wcs_len * MAX_ENCODED_BYTES; |