From c558db3c39db1817f78ac1bd81ec03a99447d423 Mon Sep 17 00:00:00 2001 From: kangenbo Date: Mon, 18 Mar 2019 12:47:43 -0400 Subject: [PATCH] 0095 --- lib/dotdot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dotdot.c b/lib/dotdot.c index cbb308d..2c6177a 100644 --- a/lib/dotdot.c +++ b/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) { -- 1.8.3.1