summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input/http_helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/http_helper.c b/src/input/http_helper.c
index d7f9a93ff..db93b9b45 100644
--- a/src/input/http_helper.c
+++ b/src/input/http_helper.c
@@ -198,6 +198,7 @@ int _x_parse_url (char *url, char **proto, char** host, int *port,
} else
*it = start[i];
}
+ *it = '\0';
}
}
} else {