From: didg Date: Mon, 14 Feb 2005 16:01:54 +0000 (+0000) Subject: initialise before use. X-Git-Tag: netatalk-2-0-3~22 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=d387bc07265a52930fbe58e28dffc63d0668a8f2 initialise before use. --- 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; }