From fab4d3c92e0b764a00fd2abaee0889fe983f122e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 10 Apr 2006 20:49:24 +0000 Subject: [PATCH] Avoid mixed stmt/var declare --- SimpleServer.xs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'; -- 1.7.10.4