From: Adam Dickmeiss Date: Mon, 10 Apr 2006 20:49:24 +0000 (+0000) Subject: Avoid mixed stmt/var declare X-Git-Tag: release.1.0.3~24 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=fab4d3c92e0b764a00fd2abaee0889fe983f122e;p=simpleserver-moved-to-github.git Avoid mixed stmt/var declare --- diff --git a/SimpleServer.xs b/SimpleServer.xs index 566e817..4c047e5 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.39 2006-04-09 23:01:00 adam Exp $ + * $Id: SimpleServer.xs,v 1.40 2006-04-10 20:49:24 adam Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -1240,8 +1240,9 @@ bend_initresult *bend_init(bend_initrequest *q) char *user = NULL; char *passwd = NULL; if (q->auth->which == Z_IdAuthentication_open) { + char *cp; user = nmem_strdup (odr_getmem (q->stream), q->auth->u.open); - char *cp = strchr (user, '/'); + cp = strchr (user, '/'); if (cp) { /* password after / given */ *cp = '\0';