From d387bc07265a52930fbe58e28dffc63d0668a8f2 Mon Sep 17 00:00:00 2001 From: didg Date: Mon, 14 Feb 2005 16:01:54 +0000 Subject: [PATCH] initialise before use. --- etc/afpd/mangle.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/afpd/mangle.c b/etc/afpd/mangle.c index 5bd7baa3..1a0b16df 100644 --- a/etc/afpd/mangle.c +++ b/etc/afpd/mangle.c @@ -1,5 +1,5 @@ /* - * $Id: mangle.c,v 1.16.2.1.2.12.2.2 2005-02-12 11:22:05 didg Exp $ + * $Id: mangle.c,v 1.16.2.1.2.12.2.3 2005-02-14 16:01:54 didg Exp $ * * Copyright (c) 2002. Joe Marcus Clarke (marcus@marcuscom.com) * All Rights Reserved. See COPYRIGHT. @@ -54,8 +54,9 @@ static char *demangle_checks ( const struct vol *vol, char* uname, char * mfilen uname, strlen(uname), buffer, MAXPATHLEN, &flags)) ) { return mfilename; } - /* If the filename is too long we also needed to mangle isn't this stuff always false */ - if ( len >= vol->max_filename || (mfilenamelen = strlen(mfilename)) == MACFILELEN ) { + /* If the filename is too long we also needed to mangle */ + mfilenamelen = strlen(mfilename); + if ( len >= vol->max_filename || mfilenamelen == MACFILELEN ) { flags |= CONV_REQMANGLE; len = prefix; } -- 2.39.2