aboutsummaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
authorgoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-17 12:58:13 +0000
committergoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-17 12:58:13 +0000
commit820f6dc61d99821a1e0b1abeb2910bc384869603 (patch)
treec16f3dfb494d0224a2cb73ed3a0eaf1d7464d782 /src/http.c
parent6533f15c87091680cc2a049f28637dc749f6f181 (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.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/http.c b/src/http.c
index 6ef45b7..e188c5f 100644
--- a/src/http.c
+++ b/src/http.c
@@ -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;
}
/*@@