diff options
author | Omar Polo <op@omarpolo.com> | 2020-12-28 17:50:26 +0100 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2020-12-28 17:50:26 +0100 |
commit | b3deee7b389408c9c2248fecfd2d1c6bc47e9c97 (patch) | |
tree | bf83a2ff98994f508230ef6c3e8a9f43c062527d /gmid.c | |
parent | 3d9a1c73de100ab3f6207af3700121e9a3607a1b (diff) |
initialize error string to avoid returning garbage
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |