diff --git a/src/libraries/libmisc/s-string.c b/src/libraries/libmisc/s-string.c index ae34c0706a87b4f8c3977131dce0f05f0d4df9c5..7874163b6d62bdc94de51098df3cfb9434e69443 100644 --- a/src/libraries/libmisc/s-string.c +++ b/src/libraries/libmisc/s-string.c @@ -126,9 +126,9 @@ s_crea_str (String * dest_string, */ EXPORT Success -s_mem_crea_str (String * dest_string, - const char * buffer, - String_size length) +s_mem_crea_str (String * dest_string, + const unsigned char * buffer, + String_size length) { void * temp_ptr; /* To hold result from malloc/realloc * before actually using it. */ @@ -139,9 +139,6 @@ s_mem_crea_str (String * dest_string, return FAILURE; } - if ( dest_string->string == NULL ) - ++no_of_allocated_strings; - FREE_0 (dest_string->string); dest_string->string = temp_ptr; @@ -174,9 +171,6 @@ s_size_crea_str(String *result, return FAILURE; } - if ( result->string == NULL ) - ++no_of_allocated_strings; - FREE_0 (result->string); result->string = temp_ptr; result->len = length;