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