Commit 9f9a9eed authored by Pontus Freyhult's avatar Pontus Freyhult

Removed obsolete variable copychars.

Rev: src/sftp/ChangeLog:1.36
Rev: src/sftp/str_utils.c:1.5
parent ee464195
2002-06-27 Pontus Skld <Pontus.Skold@dis.uu.se>
* str_utils.c (lsftp_s_strtok): Don't use strndup.
(lsftp_s_strtok): Removed unused variable.
2002-06-27 Pontus Skld <pont@soua.net>
......
......@@ -143,7 +143,6 @@ lsftp_s_strtok(const char* s, const char* sep,
{
/* TODO: should we do this different to support char-types with more than eight bits? */
int copychars;
char* tend;
char* scopy;
......@@ -162,7 +161,7 @@ lsftp_s_strtok(const char* s, const char* sep,
tend = lsftp_s_skipn( s, sep ); /* Find the first separator in our new s (or it's end) */
scopy = strdup(s ); /* Put the token in store */
scopy = strdup( s ); /* Put the token in store */
if( !scopy )
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment