diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-17 12:58:13 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-17 12:58:13 +0000 |
commit | 820f6dc61d99821a1e0b1abeb2910bc384869603 (patch) | |
tree | c16f3dfb494d0224a2cb73ed3a0eaf1d7464d782 /src/http.c | |
parent | 6533f15c87091680cc2a049f28637dc749f6f181 (diff) |
Bug fix - forgot to change function when changed data structure it works on.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@34 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/http.c')
-rw-r--r-- | src/http.c | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -135,18 +135,29 @@ int HTTP_ReadFromClient(cGH *cctkGH, int filedes) @@*/ const char *HTTP_ArgumentValue(const httpRequest *request, const char *arg) { - const char *value; + const char *retval; + + const httpArg *value; if(request->arguments) { - value = Util_HashData(request->arguments, strlen(arg), arg, 0); + value = (httpArg *)Util_HashData(request->arguments, strlen(arg), arg, 0); + + if(value) + { + retval = value->value; + } + else + { + retval = NULL; + } } else { - value = NULL; + retval = NULL; } - return value; + return retval; } /*@@ |