diff options
Diffstat (limited to 'Utilities/cmcurl/lib/dotdot.c')
-rw-r--r-- | Utilities/cmcurl/lib/dotdot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmcurl/lib/dotdot.c b/Utilities/cmcurl/lib/dotdot.c index cbb308d..2c6177a 100644 --- a/Utilities/cmcurl/lib/dotdot.c +++ b/Utilities/cmcurl/lib/dotdot.c @@ -62,6 +62,8 @@ char *Curl_dedotdotify(const char *input) if(!out) return NULL; /* out of memory */ + *out = 0; /* zero terminates, for inputs like "./" */ + /* get a cloned copy of the input */ clone = strdup(input); if(!clone) { |