diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-02 08:32:30 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-02 08:32:30 +0000 |
commit | f8d5bb9785cd3aa36cfe95609230993f1fbfad52 (patch) | |
tree | bdf52719f180322703a9872cda647d4344f625c2 /libssh/string.c | |
parent | 3a67aaa4284f785fa284b14a036d4913939cd170 (diff) | |
download | libssh-f8d5bb9785cd3aa36cfe95609230993f1fbfad52.tar.gz libssh-f8d5bb9785cd3aa36cfe95609230993f1fbfad52.tar.xz libssh-f8d5bb9785cd3aa36cfe95609230993f1fbfad52.zip |
Fix string_new().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@338 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/string.c')
-rw-r--r-- | libssh/string.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libssh/string.c b/libssh/string.c index 25743688..26d1309c 100644 --- a/libssh/string.c +++ b/libssh/string.c @@ -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; |