Fix string_new().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@338 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-02 08:32:30 +00:00
parent 3a67aaa428
commit f8d5bb9785

View File

@@ -42,9 +42,6 @@
struct string_struct *string_new(size_t size) {
struct string_struct *str = NULL;
if (size == 0) {
return NULL;
}
str = malloc(size + 4);
if (str == NULL) {
return NULL;