From 232ff6e28d1fce08472a2f7a965d83d3e008d84c Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 27 May 2005 19:28:04 +0000 Subject: patch from mailinglist --- libcsoap/soap-ctx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libcsoap/soap-ctx.c') 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 +#include 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)) { -- cgit v1.1-32-gdbae