From d4f91dc53b5680d033b5b5895430fc8fb8e38cce Mon Sep 17 00:00:00 2001 From: "Anders S. Mortensen" Date: Fri, 1 Dec 2006 10:44:58 +0000 Subject: [PATCH] Removing compiler warnings. --- SimpleServer.xs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/SimpleServer.xs b/SimpleServer.xs index 93dbc4c..d8675e7 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.53 2006-07-26 11:09:14 mike Exp $ + * $Id: SimpleServer.xs,v 1.54 2006-12-01 10:44:58 sondberg Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -35,6 +35,7 @@ #include #include #include +#include #include #ifdef WIN32 #else @@ -843,7 +844,7 @@ int bend_fetch(void *handle, bend_fetch_rr *rr) SV *sur_flag; SV *point; SV *rep_form; - SV *schema; + SV *schema = 0; char *ptr; char *ODR_record; char *ODR_basename; @@ -926,7 +927,7 @@ int bend_fetch(void *handle, bend_fetch_rr *rr) else { rr->errcode = 26; - return; + return 0; } } @@ -1028,7 +1029,9 @@ int bend_fetch(void *handle, bend_fetch_rr *rr) sv_free(err_code), sv_free(sur_flag); sv_free(rep_form); - sv_free(schema); + + if (schema) + sv_free(schema); PUTBACK; FREETMPS; @@ -1110,7 +1113,7 @@ int bend_present(void *handle, bend_present_rr *rr) else { rr->errcode = 26; - return; + return 0; } } -- 1.7.10.4