diff options
author | snowdrop | 2005-05-27 19:28:04 +0000 |
---|---|---|
committer | snowdrop | 2005-05-27 19:28:04 +0000 |
commit | 232ff6e28d1fce08472a2f7a965d83d3e008d84c (patch) | |
tree | dcad585d5cb9e1bd6cbd99ad38aa3d32d257b25c /libcsoap/soap-ctx.c | |
parent | 3cb6ed195c1c2a3e45014e31f2d923eabd88829f (diff) | |
download | csoap-232ff6e28d1fce08472a2f7a965d83d3e008d84c.tar.gz csoap-232ff6e28d1fce08472a2f7a965d83d3e008d84c.tar.bz2 |
patch from mailinglist
Diffstat (limited to 'libcsoap/soap-ctx.c')
-rwxr-xr-x | libcsoap/soap-ctx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcsoap/soap-ctx.c b/libcsoap/soap-ctx.c index 5fe0685..291a161 100755 --- a/libcsoap/soap-ctx.c +++ b/libcsoap/soap-ctx.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: soap-ctx.c,v 1.4 2004/11/02 23:09:26 snowdrop Exp $ + * $Id: soap-ctx.c,v 1.5 2005/05/27 19:28:15 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -23,6 +23,7 @@ ******************************************************************/ #include <libcsoap/soap-ctx.h> +#include <string.h> SoapCtx* soap_ctx_new(SoapEnv *env) /* should only be used internally */ { @@ -86,7 +87,7 @@ part_t *soap_ctx_get_file(SoapCtx* ctx, xmlNodePtr node) prop = xmlGetProp(node, "href"); - if (!prop) NULL; + if (!prop) return NULL; strcpy(href, (const char*)prop); if (!strncmp(href, "cid:", 4)) { |