aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2020-12-28 17:50:26 +0100
committerOmar Polo <op@omarpolo.com>2020-12-28 17:50:26 +0100
commitb3deee7b389408c9c2248fecfd2d1c6bc47e9c97 (patch)
treebf83a2ff98994f508230ef6c3e8a9f43c062527d /gmid.c
parent3d9a1c73de100ab3f6207af3700121e9a3607a1b (diff)
initialize error string to avoid returning garbage
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmid.c b/gmid.c
index 1f96c7d..912bc8a 100644
--- a/gmid.c
+++ b/gmid.c
@@ -514,6 +514,7 @@ handle(struct pollfd *fds, struct client *client)
return;
}
+ parse_err = "invalid request";
if (!trim_req_uri(buf) || !parse_uri(buf, &uri, &parse_err)) {
if (!start_reply(fds, client, BAD_REQUEST, parse_err))
return;