From: Nicholas Clark Date: Fri, 3 Apr 2009 17:10:12 +0000 (+0100) Subject: Don't assign needlessly to dirname. (which seems to make clang happier.) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8c31914eb8d5464fe868315a1038f657f5586790;p=p5sagit%2Fp5-mst-13.2.git Don't assign needlessly to dirname. (which seems to make clang happier.) --- diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c index cc6d0e9..97b8b4a 100644 --- a/ext/SDBM_File/sdbm/sdbm.c +++ b/ext/SDBM_File/sdbm/sdbm.c @@ -91,7 +91,7 @@ sdbm_open(register char *file, register int flags, register int mode) /* * build the file names */ - dirname = strcat(strcpy(dirname, file), DIRFEXT); + strcat(strcpy(dirname, file), DIRFEXT); pagname = strcpy(dirname + strlen(dirname) + 1, file); pagname = strcat(pagname, PAGFEXT);