diff options
author | Michael Adam <obnox@samba.org> | 2013-11-16 13:10:03 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-16 13:10:03 +0100 |
commit | 69c348ce6d553a2172b6cb126268826b7b637082 (patch) | |
tree | 8fa3ec5b56fdc07417febaa35766b9a3062c626f /src/reqs.c | |
parent | bb2e894e0dd7cafb730ea56496dbc43997f6c98e (diff) |
req: move a variable into the scope where it is used in extract_http_url()
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src/reqs.c')
-rw-r--r-- | src/reqs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -192,12 +192,12 @@ static int strip_return_port (char *host) static int extract_http_url (const char *url, struct request_s *request) { char *p; - int len; int port; /* Split the URL on the slash to separate host from path */ p = strchr (url, '/'); if (p != NULL) { + int len; len = p - url; request->host = (char *) safemalloc (len + 1); memcpy (request->host, url, len); |